summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-14 23:06:10 +0000
committerDan Gohman <gohman@apple.com>2010-10-14 23:06:10 +0000
commit947c9af77497a67a6ee079e3afd1ec82059b5186 (patch)
treeb8d202729b8d3190fd5739df3d3608e61c1f5403 /clang/lib/CodeGen/CodeGenModule.h
parent0f58561907985a879d90b210a2a32fac1d5518c8 (diff)
downloadbcm5719-llvm-947c9af77497a67a6ee079e3afd1ec82059b5186.tar.gz
bcm5719-llvm-947c9af77497a67a6ee079e3afd1ec82059b5186.zip
Experimental TBAA support.
This enables metadata generation by default, however the TBAA pass in the optimizer is still disabled for now. llvm-svn: 116536
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 898f9c3668f..236b5b73e68 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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;
OpenPOWER on IntegriCloud