Skip to content

Commit bdc5f40

Browse files
committedJul 5, 2016
[LLVM][INTRINSICS] adding intrinsics of CLFLUSHOPT
Differential Revision: http://reviews.llvm.org/D21789 llvm-svn: 274553
1 parent 17934da commit bdc5f40

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎llvm/include/llvm/IR/IntrinsicsX86.td

+7
Original file line numberDiff line numberDiff line change
@@ -4189,6 +4189,13 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
41894189
Intrinsic<[], [llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty], []>;
41904190
}
41914191

4192+
//===----------------------------------------------------------------------===//
4193+
// CLFLUSHOPT
4194+
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
4195+
def int_x86_clflushopt : GCCBuiltin<"__builtin_ia32_clflushopt">,
4196+
Intrinsic<[], [llvm_ptr_ty], []>;
4197+
}
4198+
41924199
//===----------------------------------------------------------------------===//
41934200
// Support protection key
41944201
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".

‎llvm/lib/Target/X86/X86InstrInfo.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@ let Predicates = [HasTBM] in {
25142514
//
25152515

25162516
def CLFLUSHOPT : I<0xAE, MRM7m, (outs), (ins i8mem:$src),
2517-
"clflushopt\t$src", []>, PD;
2517+
"clflushopt\t$src", [(int_x86_clflushopt addr:$src)]>, PD;
25182518
def CLWB : I<0xAE, MRM6m, (outs), (ins i8mem:$src), "clwb\t$src", []>, PD;
25192519
def PCOMMIT : I<0xAE, MRM_F8, (outs), (ins), "pcommit", []>, PD;
25202520

0 commit comments

Comments
 (0)
Please sign in to comment.