mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove the experimental AliasAnalysis::getDependency interface, which
isn't a good level of abstraction for memdep. Instead, generalize AliasAnalysis::alias and related interfaces with a new Location class for describing a memory location. For now, this is the same Pointer and Size as before, plus an additional field for a TBAA tag. Also, introduce a fixed MD_tbaa metadata tag kind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,9 +28,16 @@ LLVMContext& llvm::getGlobalContext() {
|
||||
}
|
||||
|
||||
LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
|
||||
// Create the first metadata kind, which is always 'dbg'.
|
||||
// Create the fixed metadata kinds. This is done in the same order as the
|
||||
// MD_* enum values so that they correspond.
|
||||
|
||||
// Create the 'dbg' metadata kind.
|
||||
unsigned DbgID = getMDKindID("dbg");
|
||||
assert(DbgID == MD_dbg && "dbg kind id drifted"); (void)DbgID;
|
||||
|
||||
// Create the 'tbaa' metadata kind.
|
||||
unsigned TBAAID = getMDKindID("tbaa");
|
||||
assert(TBAAID == MD_tbaa && "tbaa kind id drifted"); (void)TBAAID;
|
||||
}
|
||||
LLVMContext::~LLVMContext() { delete pImpl; }
|
||||
|
||||
|
Reference in New Issue
Block a user