LLVM 22.0.0git
|
Registry of file location information for LLVM IR constructs. More...
#include "llvm/AsmParser/AsmParserContext.h"
Registry of file location information for LLVM IR constructs.
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.
Definition at line 31 of file AsmParserContext.h.
bool llvm::AsmParserContext::addBlockLocation | ( | BasicBlock * | BB, |
const FileLocRange & | Loc ) |
Definition at line 79 of file AsmParserContext.cpp.
bool llvm::AsmParserContext::addFunctionLocation | ( | Function * | F, |
const FileLocRange & | Loc ) |
Definition at line 74 of file AsmParserContext.cpp.
References F.
bool llvm::AsmParserContext::addInstructionLocation | ( | Instruction * | I, |
const FileLocRange & | Loc ) |
Definition at line 84 of file AsmParserContext.cpp.
References I.
BasicBlock * llvm::AsmParserContext::getBlockAtLocation | ( | const FileLoc & | Query | ) | const |
Get the block at the requested location.
If no block occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 56 of file AsmParserContext.cpp.
References getBlockAtLocation().
BasicBlock * llvm::AsmParserContext::getBlockAtLocation | ( | const FileLocRange & | Query | ) | const |
Get the block at the requested location range.
If no single block occupies the queried range, or the record is missing, a nullptr is returned.
Definition at line 48 of file AsmParserContext.cpp.
Referenced by getBlockAtLocation().
std::optional< FileLocRange > llvm::AsmParserContext::getBlockLocation | ( | const BasicBlock * | BB | ) | const |
Definition at line 21 of file AsmParserContext.cpp.
Get the function at the requested location.
If no function occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 43 of file AsmParserContext.cpp.
References getFunctionAtLocation().
Function * llvm::AsmParserContext::getFunctionAtLocation | ( | const FileLocRange & | Query | ) | const |
Get the function at the requested location range.
If no single function occupies the queried range, or the record is missing, a nullptr is returned.
Definition at line 35 of file AsmParserContext.cpp.
References F.
Referenced by getFunctionAtLocation().
std::optional< FileLocRange > llvm::AsmParserContext::getFunctionLocation | ( | const Function * | F | ) | const |
Definition at line 14 of file AsmParserContext.cpp.
References F.
Instruction * llvm::AsmParserContext::getInstructionAtLocation | ( | const FileLoc & | Query | ) | const |
Get the instruction at the requested location.
If no instruction occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 70 of file AsmParserContext.cpp.
References getInstructionAtLocation().
Instruction * llvm::AsmParserContext::getInstructionAtLocation | ( | const FileLocRange & | Query | ) | const |
Get the instruction at the requested location range.
If no single instruction occupies the queried range, or the record is missing, a nullptr is returned.
Definition at line 61 of file AsmParserContext.cpp.
References I.
Referenced by getInstructionAtLocation().
std::optional< FileLocRange > llvm::AsmParserContext::getInstructionLocation | ( | const Instruction * | I | ) | const |
Definition at line 28 of file AsmParserContext.cpp.
References I.