mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
Move sparc specific code into the Sparc backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -14,50 +14,6 @@ class InstructionNode;
|
||||
class TargetMachine;
|
||||
class Instruction;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Function GetConstantValueAsUnsignedInt
|
||||
// Function GetConstantValueAsSignedInt
|
||||
//
|
||||
// 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
|
||||
//
|
||||
// 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);
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Function: GetMemInstArgs
|
||||
//
|
||||
// Purpose:
|
||||
// Get the pointer value and the index vector for a memory operation
|
||||
// (GetElementPtr, Load, or Store). If all indices of the given memory
|
||||
// operation are constant, fold in constant indices in a chain of
|
||||
// preceding GetElementPtr instructions (if any), and return the
|
||||
// pointer value of the first instruction in the chain.
|
||||
// All folded instructions are marked so no code is generated for them.
|
||||
//
|
||||
// Return values:
|
||||
// Returns the pointer Value to use.
|
||||
// Returns the resulting IndexVector in idxVec.
|
||||
// Returns true/false in allConstantIndices if all indices are/aren't const.
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Value* GetMemInstArgs (InstructionNode* memInstrNode,
|
||||
std::vector<Value*>& idxVec,
|
||||
bool& allConstantIndices);
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Function: ChooseRegOrImmed
|
||||
//
|
||||
|
Reference in New Issue
Block a user