mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
The top bit is used to determine whether it's a MachineConstantPoolValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1150,7 +1150,7 @@ class ConstantPoolSDNode : public SDNode {
|
|||||||
Constant *ConstVal;
|
Constant *ConstVal;
|
||||||
MachineConstantPoolValue *MachineCPVal;
|
MachineConstantPoolValue *MachineCPVal;
|
||||||
} Val;
|
} Val;
|
||||||
int Offset;
|
int Offset; // It's a MachineConstantPoolValue if top bit is set.
|
||||||
unsigned Alignment;
|
unsigned Alignment;
|
||||||
protected:
|
protected:
|
||||||
friend class SelectionDAG;
|
friend class SelectionDAG;
|
||||||
@@ -1200,7 +1200,9 @@ public:
|
|||||||
return Val.MachineCPVal;
|
return Val.MachineCPVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getOffset() const { return Offset; }
|
int getOffset() const {
|
||||||
|
return Offset & ~(1 << (sizeof(unsigned)*8-1));
|
||||||
|
}
|
||||||
|
|
||||||
// Return the alignment of this constant pool object, which is either 0 (for
|
// Return the alignment of this constant pool object, which is either 0 (for
|
||||||
// default alignment) or log2 of the desired value.
|
// default alignment) or log2 of the desired value.
|
||||||
|
Reference in New Issue
Block a user