Return the type id for the type. This will return one of the TypeID enum elements defined above.

Synopsis

Declared in <llvm/IR/Type.h>

TypeID
getTypeID() const;

Return Value

Definitions of all of the base types for the Type system. Based on this value, you can cast to a class defined in DerivedTypes.h. Note: If you add an element to this, you need to add an element to the Type::getPrimitiveType function, or else things will break! Also update LLVMTypeKind and LLVMGetTypeKind () in the C binding.

Created with MrDocs