mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Add function GetConstantValueAsUnsignedInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a40cbb3b7e
commit
b8a45c9fe9
@ -21,11 +21,13 @@ class TargetMachine;
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Function GetConstantValueAsUnsignedInt
|
||||
// Function GetConstantValueAsSignedInt
|
||||
//
|
||||
// Convenience function to get the value of an integer constant, for an
|
||||
// appropriate integer or non-integer type that can be held in an integer.
|
||||
// The type of the argument must be the following:
|
||||
// Convenience functions to get the value of an integer constant, for an
|
||||
// appropriate integer or non-integer type that can be held in a signed
|
||||
// or unsigned integer respectively. The type of the argument must be
|
||||
// the following:
|
||||
// Signed or unsigned integer
|
||||
// Boolean
|
||||
// Pointer
|
||||
@ -33,6 +35,9 @@ class TargetMachine;
|
||||
// isValidConstant is set to true if a valid constant was found.
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
uint64_t GetConstantValueAsUnsignedInt (const Value *V,
|
||||
bool &isValidConstant);
|
||||
|
||||
int64_t GetConstantValueAsSignedInt (const Value *V,
|
||||
bool &isValidConstant);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user