Provide (undocumented for now) __pause() call to emit PAUSE inst.
This commit is contained in:
@@ -467,6 +467,7 @@ lSetInternalFunctions(llvm::Module *module) {
|
|||||||
"__num_cores",
|
"__num_cores",
|
||||||
"__packed_load_active",
|
"__packed_load_active",
|
||||||
"__packed_store_active",
|
"__packed_store_active",
|
||||||
|
"__pause",
|
||||||
"__popcnt_int32",
|
"__popcnt_int32",
|
||||||
"__popcnt_int64",
|
"__popcnt_int64",
|
||||||
"__prefetch_read_uniform_1",
|
"__prefetch_read_uniform_1",
|
||||||
|
|||||||
@@ -1603,6 +1603,11 @@ declare void @ISPCInstrument(i8*, i8*, i32, i64) nounwind
|
|||||||
declare i1 @__is_compile_time_constant_mask(<WIDTH x MASK> %mask)
|
declare i1 @__is_compile_time_constant_mask(<WIDTH x MASK> %mask)
|
||||||
declare i1 @__is_compile_time_constant_varying_int32(<WIDTH x i32>)
|
declare i1 @__is_compile_time_constant_varying_int32(<WIDTH x i32>)
|
||||||
|
|
||||||
|
define void @__pause() nounwind readnone {
|
||||||
|
call void asm sideeffect "pause", "~{dirflag},~{fpsr},~{flags}"() nounwind
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
; This function declares placeholder masked store functions for the
|
; This function declares placeholder masked store functions for the
|
||||||
; front-end to use.
|
; front-end to use.
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user