mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
generalize this to allow any argument.
llvm-svn: 157542
This commit is contained in:
parent
740b217134
commit
66230fbd9c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user