[PATCH] D59888: [ARM][CMSE] Add cmse intrinsics for TT instructions
Javed Absar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 09:27:13 PDT 2019
javed.absar created this revision.
javed.absar added a reviewer: dmgreen.
Herald added a subscriber: kristof.beyls.
javed.absar edited the summary of this revision.
javed.absar edited the summary of this revision.
This is 2nd patch in series following the RFC http://lists.llvm.org/pipermail/cfe-dev/2019-March/061834.html informing the community about providing CMSE support in clang/llvm.
This is patch L 1 (as mentioned in the RFC). Previous patch:
C1: [ARM][CMSE] Add commandline option and feature macro https://reviews.llvm.org/D59879
It defines the intrinsics cmse_TT, cmse_TTT, cmse_TTA, cmse_TTAT. There is no tests here as the tests are in subsequent clang patch that uses these intrinsics .
https://reviews.llvm.org/D59888
Files:
include/llvm/IR/IntrinsicsARM.td
Index: include/llvm/IR/IntrinsicsARM.td
===================================================================
--- include/llvm/IR/IntrinsicsARM.td
+++ include/llvm/IR/IntrinsicsARM.td
@@ -333,6 +333,17 @@
[IntrNoMem]>;
//===----------------------------------------------------------------------===//
+// CMSE
+def int_arm_cmse_tt : GCCBuiltin<"__builtin_arm_cmse_TT">,
+ Intrinsic<[llvm_i32_ty], [llvm_ptr_ty], [IntrNoMem]>;
+def int_arm_cmse_ttt : GCCBuiltin<"__builtin_arm_cmse_TTT">,
+ Intrinsic<[llvm_i32_ty], [llvm_ptr_ty], [IntrNoMem]>;
+def int_arm_cmse_tta : GCCBuiltin<"__builtin_arm_cmse_TTA">,
+ Intrinsic<[llvm_i32_ty], [llvm_ptr_ty], [IntrNoMem]>;
+def int_arm_cmse_ttat : GCCBuiltin<"__builtin_arm_cmse_TTAT">,
+ Intrinsic<[llvm_i32_ty], [llvm_ptr_ty], [IntrNoMem]>;
+
+//===----------------------------------------------------------------------===//
// HINT
def int_arm_hint : Intrinsic<[], [llvm_i32_ty]>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59888.192454.patch
Type: text/x-patch
Size: 944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190327/37dff529/attachment.bin>
More information about the llvm-commits
mailing list