mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Document the use of getValueType() more accurately, specifically explain
that the instruction opcode is added to the InstructionVal value and the consequences of that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf5fb2b614
commit
53201869cd
@ -181,10 +181,12 @@ public:
|
|||||||
/// getValueType - Return an ID for the concrete type of this object. This is
|
/// getValueType - Return an ID for the concrete type of this object. This is
|
||||||
/// used to implement the classof checks. This should not be used for any
|
/// used to implement the classof checks. This should not be used for any
|
||||||
/// other purpose, as the values may change as LLVM evolves. Also, note that
|
/// other purpose, as the values may change as LLVM evolves. Also, note that
|
||||||
/// starting with the InstructionVal value, the value stored is actually the
|
/// for instructions, the Instruction's opcode is added to InstructionVal. So
|
||||||
/// Instruction opcode, so there are more than just these values possible here
|
/// this means three things:
|
||||||
/// (and Instruction must be last).
|
/// # there is no value with code InstructionVal (no opcode==0).
|
||||||
///
|
/// # there are more possible values for the value type than in ValueTy enum.
|
||||||
|
/// # the InstructionVal enumerator must be the highest valued enumerator in
|
||||||
|
/// the ValueTy enum.
|
||||||
unsigned getValueType() const {
|
unsigned getValueType() const {
|
||||||
return SubclassID;
|
return SubclassID;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user