[llvm] [IR] Add CallBr intrinsics support (PR #133907)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 03:51:06 PST 2025
================
@@ -3507,16 +3507,39 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
DAG.getBasicBlock(Return)));
}
+/// The intrinsics currently supported by callbr are implicit control flow
+/// intrinsics such as amdgcn.kill.
+/// - they should be called (no "dontcall-" attributes)
+/// - they do not touch memory on the target (= !TLI.getTgtMemIntrinsic())
----------------
nikic wrote:
Can we assert at least this one? To fail more obviously when people try to extend this to new intrinsics.
https://github.com/llvm/llvm-project/pull/133907
More information about the llvm-commits
mailing list