llvm::AsmParserContext

Registry of file location information for LLVM IR constructs.

Synopsis

Declared in <llvm/AsmParser/AsmParserContext.h>

class AsmParserContext;

Description

This class provides access to the file location information for various LLVM IR constructs. Currently, it supports Function, BasicBlock and Instruction locations.

When available, it can answer queries about what is at a given file location, as well as where in a file a given IR construct is.

This information is optionally emitted by the LLParser while it reads LLVM textual IR.

Member Functions

NameDescription
addBlockLocation Record the source range of a basic block.
addFunctionLocation Record the source range of a function.
addInstructionOrArgumentLocation Record the source range of an instruction or function argument.
addValueReferenceAtLocation Record a source range at which a value is referenced.
getBlockAtLocation getBlockAtLocation overloads
getBlockLocation Get the recorded source range of a basic block.
getFunctionAtLocation getFunctionAtLocation overloads
getFunctionLocation Get the recorded source range of a function.
getInstructionOrArgumentAtLocation getInstructionOrArgumentAtLocation overloads
getInstructionOrArgumentLocation Get the recorded source range of an instruction or argument.
getValueReferencedAtLocation getValueReferencedAtLocation overloads