generalize this to allow any argument.

llvm-svn: 157542
This commit is contained in:
Chris Lattner 2012-05-27 19:17:16 +00:00
parent 4d358b55fa
commit 9db8eed2b2
1 changed files with 4 additions and 2 deletions

View File

@ -100,11 +100,13 @@ namespace Intrinsic {
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);
}