[PATCH] D62896: [X86] Add missing properties on llvm.x86.sse.{st,ld}mxcsr
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 03:04:06 PDT 2019
courbet created this revision.
courbet added reviewers: craig.topper, RKSimon.
Herald added a project: LLVM.
llvm.x86.sse.stmxcsr only writes to memory.
llvm.x86.sse.ldmxcsr only reads from memory, amd might generate an FPE.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62896
Files:
llvm/include/llvm/IR/IntrinsicsX86.td
Index: llvm/include/llvm/IR/IntrinsicsX86.td
===================================================================
--- llvm/include/llvm/IR/IntrinsicsX86.td
+++ llvm/include/llvm/IR/IntrinsicsX86.td
@@ -277,9 +277,9 @@
// Control register.
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
def int_x86_sse_stmxcsr :
- Intrinsic<[], [llvm_ptr_ty], []>;
+ Intrinsic<[], [llvm_ptr_ty], [IntrWriteMem]>;
def int_x86_sse_ldmxcsr :
- Intrinsic<[], [llvm_ptr_ty], []>;
+ Intrinsic<[], [llvm_ptr_ty], [IntrReadMem, IntrHasSideEffects]>;
}
// Misc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62896.203111.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/ded3fc02/attachment.bin>
More information about the llvm-commits
mailing list