diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-24 15:08:53 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-25 09:36:50 -0500 |
commit | a81fff8afd06fab8818db521cc79bf933c700e24 (patch) | |
tree | 5301b2e694269eddffd2f1dc8efb3d811e1240f7 /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | 7babc8e6cdd87443b1afc723a08644e997576aa4 (diff) | |
download | llvm-a81fff8afd06fab8818db521cc79bf933c700e24.zip llvm-a81fff8afd06fab8818db521cc79bf933c700e24.tar.gz llvm-a81fff8afd06fab8818db521cc79bf933c700e24.tar.bz2 |
Reapply "[Intrinsics] Add `nocallback` to the default intrinsic attributes"
This reverts commit c5f789050daab25aad6770790987e2b7c0395936 and
reapplies 7aea3ea8c3b33c9bb338d5d6c0e4832be1d09ac3 with additional test
changes.
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 8d6df26..649a117 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -663,6 +663,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R, isCommutative = false; canThrow = false; isNoReturn = false; + isNoCallback = false; isNoSync = false; isNoFree = false; isWillReturn = false; @@ -861,6 +862,8 @@ void CodeGenIntrinsic::setProperty(Record *R) { isConvergent = true; else if (R->getName() == "IntrNoReturn") isNoReturn = true; + else if (R->getName() == "IntrNoCallback") + isNoCallback = true; else if (R->getName() == "IntrNoSync") isNoSync = true; else if (R->getName() == "IntrNoFree") |