|
LLVM 23.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 94 of file AsmParserContext.cpp.
| bool llvm::AsmParserContext::addFunctionLocation | ( | Function * | F, |
| const FileLocRange & | Loc ) |
Definition at line 86 of file AsmParserContext.cpp.
References F.
| bool llvm::AsmParserContext::addInstructionOrArgumentLocation | ( | Value * | IA, |
| const FileLocRange & | Loc ) |
Definition at line 102 of file AsmParserContext.cpp.
References assert(), and llvm::isa().
| bool llvm::AsmParserContext::addValueReferenceAtLocation | ( | Value * | V, |
| const FileLocRange & | Loc ) |
Definition at line 111 of file AsmParserContext.cpp.
| 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.
| 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 49 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 44 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 37 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.
Get the instruction or function argument at the requested location.
If no instruction occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 68 of file AsmParserContext.cpp.
| Value * llvm::AsmParserContext::getInstructionOrArgumentAtLocation | ( | const FileLocRange & | Query | ) | const |
Get the instruction or function argument 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 60 of file AsmParserContext.cpp.
References llvm::FileLocRange::End, and llvm::FileLocRange::Start.
| std::optional< FileLocRange > llvm::AsmParserContext::getInstructionOrArgumentLocation | ( | const Value * | IA | ) | const |
Definition at line 28 of file AsmParserContext.cpp.
References assert(), and llvm::isa().
Get value referenced at the requested location.
If no value occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 82 of file AsmParserContext.cpp.
| Value * llvm::AsmParserContext::getValueReferencedAtLocation | ( | const FileLocRange & | Query | ) | const |
Get value referenced at the requested location range.
If no value occupies the queried location, or the record is missing, a nullptr is returned.
Definition at line 73 of file AsmParserContext.cpp.
References llvm::FileLocRange::End, and llvm::FileLocRange::Start.