[llvm-commits] [llvm] r157542 - /llvm/trunk/include/llvm/Intrinsics.h
Chris Lattner
sabre at nondot.org
Sun May 27 12:17:17 PDT 2012
Author: lattner
Date: Sun May 27 14:17:16 2012
New Revision: 157542
URL: http://llvm.org/viewvc/llvm-project?rev=157542&view=rev
Log:
generalize this to allow any argument.
Modified:
llvm/trunk/include/llvm/Intrinsics.h
Modified: llvm/trunk/include/llvm/Intrinsics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Intrinsics.h?rev=157542&r1=157541&r2=157542&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Intrinsics.h (original)
+++ llvm/trunk/include/llvm/Intrinsics.h Sun May 27 14:17:16 2012
@@ -100,11 +100,13 @@
AK_AnyPointer
};
unsigned getArgumentNumber() const {
- assert(Kind == Argument);
+ assert(Kind == Argument || Kind == ExtendVecArgument ||
+ Kind == TruncVecArgument);
return Argument_Info >> 2;
}
ArgKind getArgumentKind() const {
- assert(Kind == Argument);
+ assert(Kind == Argument || Kind == ExtendVecArgument ||
+ Kind == TruncVecArgument);
return (ArgKind)(Argument_Info&3);
}
More information about the llvm-commits
mailing list