|
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 33 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 71 of file AsmParserContext.cpp.
References F.
| bool llvm::AsmParserContext::addInstructionLocation | ( | Instruction * | I, |
| const FileLocRange & | Loc ) |
Definition at line 87 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 54 of file AsmParserContext.cpp.
| 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 47 of file AsmParserContext.cpp.
References llvm::FileLocRange::End, and llvm::FileLocRange::Start.
| 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 42 of file AsmParserContext.cpp.
| 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 llvm::FileLocRange::End, and llvm::FileLocRange::Start.
| 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 67 of file AsmParserContext.cpp.
| 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 59 of file AsmParserContext.cpp.
References llvm::FileLocRange::End, and llvm::FileLocRange::Start.
| std::optional< FileLocRange > llvm::AsmParserContext::getInstructionLocation | ( | const Instruction * | I | ) | const |
Definition at line 28 of file AsmParserContext.cpp.
References I.