[PATCH] D156476: [IR] Mark `llvm.trap` as `memory(inaccessiblemem: write)`
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 12:21:53 PDT 2023
jdoerfert updated this revision to Diff 544887.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156476/new/
https://reviews.llvm.org/D156476
Files:
llvm/include/llvm/IR/Intrinsics.td
Index: llvm/include/llvm/IR/Intrinsics.td
===================================================================
--- llvm/include/llvm/IR/Intrinsics.td
+++ llvm/include/llvm/IR/Intrinsics.td
@@ -1670,8 +1670,10 @@
///===-------------------------- Other Intrinsics --------------------------===//
//
-def int_trap : Intrinsic<[], [], [IntrNoReturn, IntrCold]>,
- ClangBuiltin<"__builtin_trap">;
+// TODO: We should introduce a new memory kind fo traps (and other side effects
+// we only model to keep things alive).
+def int_trap : Intrinsic<[], [], [IntrNoReturn, IntrCold, IntrInaccessibleMemOnly,
+ IntrWriteMem]>, ClangBuiltin<"__builtin_trap">;
def int_debugtrap : Intrinsic<[]>,
ClangBuiltin<"__builtin_debugtrap">;
def int_ubsantrap : Intrinsic<[], [llvm_i8_ty],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156476.544887.patch
Type: text/x-patch
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230727/4500c05a/attachment.bin>
More information about the llvm-commits
mailing list