From 3d5aff5d3036b0ff09d114857cd2276134b3d8c9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 14 Oct 2010 23:06:10 +0000 Subject: Experimental TBAA support. This enables metadata generation by default, however the TBAA pass in the optimizer is still disabled for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116536 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 898f9c3668..236b5b73e6 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -70,6 +70,7 @@ namespace clang { namespace CodeGen { class CodeGenFunction; + class CodeGenTBAA; class CGCXXABI; class CGDebugInfo; class CGObjCRuntime; @@ -111,6 +112,7 @@ class CodeGenModule : public BlockModule { Diagnostic &Diags; CGCXXABI &ABI; CodeGenTypes Types; + CodeGenTBAA *TBAA; /// VTables - Holds information about C++ vtables. CodeGenVTables VTables; @@ -250,6 +252,11 @@ public: const TargetCodeGenInfo &getTargetCodeGenInfo(); bool isTargetDarwin() const; + llvm::MDNode *getTBAAInfo(QualType QTy); + + static void DecorateInstruction(llvm::Instruction *Inst, + llvm::MDNode *TBAAInfo); + /// getDeclVisibilityMode - Compute the visibility of the decl \arg D. LangOptions::VisibilityMode getDeclVisibilityMode(const Decl *D) const; -- cgit v1.2.3