aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContext.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-09-24 17:03:46 +0100
committerGitHub <noreply@github.com>2025-09-24 16:03:46 +0000
commit4d4cb757f94470b95458fcbe3b88332b212feeee (patch)
tree817e1cfd22061c3437381cb67560c279b37877e2 /llvm/lib/IR/LLVMContext.cpp
parent41387abd33bef7655807c5b720a34b05184cc040 (diff)
downloadllvm-4d4cb757f94470b95458fcbe3b88332b212feeee.zip
llvm-4d4cb757f94470b95458fcbe3b88332b212feeee.tar.gz
llvm-4d4cb757f94470b95458fcbe3b88332b212feeee.tar.bz2
[LLVMContext] Add OB_align assume bundle op ID. (#158078)
Assume operand bundles are emitted in a few more places now, including used in various places in libc++. Add a dedicated ID for them. PR: https://github.com/llvm/llvm-project/pull/158078
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r--llvm/lib/IR/LLVMContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index 57532cd..335c210 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -53,6 +53,8 @@ static StringRef knownBundleName(unsigned BundleTagID) {
return "kcfi";
case LLVMContext::OB_convergencectrl:
return "convergencectrl";
+ case LLVMContext::OB_align:
+ return "align";
default:
llvm_unreachable("unknown bundle id");
}
@@ -76,7 +78,7 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
}
for (unsigned BundleTagID = LLVMContext::OB_deopt;
- BundleTagID <= LLVMContext::OB_convergencectrl; ++BundleTagID) {
+ BundleTagID <= LLVMContext::OB_LastBundleID; ++BundleTagID) {
[[maybe_unused]] const auto *Entry =
pImpl->getOrInsertBundleTag(knownBundleName(BundleTagID));
assert(Entry->second == BundleTagID && "operand bundle id drifted!");