mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
add a helper function to constantint.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2c594f350
commit
e51f2a59d9
@ -52,6 +52,9 @@ public:
|
|||||||
inline const APInt& getValue() const {
|
inline const APInt& getValue() const {
|
||||||
return Val;
|
return Val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getBitWidth - Return the bitwidth of this constant.
|
||||||
|
unsigned getBitWidth() const { return Val.getBitWidth(); }
|
||||||
|
|
||||||
/// Return the constant as a 64-bit unsigned integer value after it
|
/// Return the constant as a 64-bit unsigned integer value after it
|
||||||
/// has been zero extended as appropriate for the type of this constant. Note
|
/// has been zero extended as appropriate for the type of this constant. Note
|
||||||
|
Loading…
x
Reference in New Issue
Block a user