[llvm] [LLVM-Tablegen] Explicit Type Constraints for Overloaded LLVM Intrinsics (PR #172442)
Dharuni R Acharya via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 03:14:50 PST 2026
================
@@ -589,10 +607,29 @@ FunctionType *Intrinsic::getType(LLVMContext &Context, ID id,
ArrayRef<IITDescriptor> TableRef = Table;
Type *ResultTy = DecodeFixedType(TableRef, Tys, Context);
+ if (!TableRef.empty() &&
+ TableRef[0].Kind == IITDescriptor::ArgumentTypeConstraint) {
+ unsigned NumConstraints = TableRef[0].getArgumentNumConstraints();
+ TableRef = TableRef.slice(1);
----------------
DharuniRAcharya wrote:
Replaced all instances of `slice(1)` with `drop_front()` in the latest revision.
https://github.com/llvm/llvm-project/pull/172442
More information about the llvm-commits
mailing list