llvm::Value::getValueID

Return an ID for the concrete type of this object.

Synopsis

Declared in <llvm/IR/Value.h>

unsigned int
getValueID() const;

Description

This is 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 for instructions, the Instruction's opcode is added to InstructionVal. So this means three things: # 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.

Return Value

an ID for the concrete type of this object.