This is patch C2 as mentioned in RFC http://lists.llvm.org/pipermail/cfe-dev/2019-March/061834.html
This adds cmse builtin functions, and introduces arm_cmse.h header which has useful macros, functions and data types for end-users of cmse.
Paths
| Differential D62394
[ARM][CMSE] Add CMSE header & builtins AbandonedPublic Authored by javed.absar on May 24 2019, 7:49 AM.
Details Summary This is patch C2 as mentioned in RFC http://lists.llvm.org/pipermail/cfe-dev/2019-March/061834.html This adds cmse builtin functions, and introduces arm_cmse.h header which has useful macros, functions and data types for end-users of cmse.
Diff Detail Event TimelineThis comment was removed by sigvartmh. This revision now requires changes to proceed.Sep 17 2019, 6:42 AM Comment Actions
Did you try to build and run lit tests successfully with this patch before trying your own tests? Comment Actions
Unfortunately I did not will try to run the test first. I assumed that this patch was working, is it? Comment Actions I'm afraid the upstreaming of CMSE has stalled, and this is not all that would be needed to get it working. This adds some header files and clang builtins, the selection of them in the backend isn't yet present, hence the error you are seeing. There are more patches to follow around lowering intrinsics and clearing registers correctly. Comment Actions Not used to phabricator tried to remove my request for change. So no one is working on upstreaming CMSE to LLVM now? Comment Actions Hi, CMSE upstreaming is indeed one of our priorities. So yes, we are very interested in your feedback. And no, CMSE upstreaming is not abandoned, just going a bit slow ATM :( but any help reviewing is much appreciated! :) @chill would it make sense to start upstream other self-contained pieces of codegen before this patch? Comment Actions I hope I will be able to pick this up in the following weeks and land patches a couple of weeks later. Sorry for the delay, but priorities shift all the time ;)
Revision Contents
Diff 201243 include/clang/Basic/BuiltinsARM.def
lib/Headers/CMakeLists.txt
lib/Headers/arm_cmse.h
test/CodeGen/arm-cmse-nonsecure.c
test/CodeGen/arm-cmse-secure.c
test/CodeGen/arm-cmse.c
test/Headers/arm-cmse-header-ns.c
test/Headers/arm-cmse-header.c
|