mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
generalize this to allow any argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27302f0739
commit
ae5c3b9b0f
@ -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…
x
Reference in New Issue
Block a user