diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-01-06 22:27:43 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-01-06 22:27:43 +0000 |
| commit | e0e019f6a2d76e140221d9c10159a444839e2563 (patch) | |
| tree | e17e8b4c7d49c80b85dae49d6a0de39b9b3dd2f5 /lib/CodeGen/CodeGenModule.h | |
| parent | f4c386bdd1f95c0ee746a5baac574bf9723cc5de (diff) | |
| download | clang-e0e019f6a2d76e140221d9c10159a444839e2563.tar.gz clang-e0e019f6a2d76e140221d9c10159a444839e2563.tar.bz2 clang-e0e019f6a2d76e140221d9c10159a444839e2563.tar.xz | |
CodeGen: Initial instrumentation based PGO implementation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 5f26ab968c..9dad092ec6 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -85,7 +85,8 @@ namespace CodeGen { class CGCUDARuntime; class BlockFieldFlags; class FunctionArgList; - + class PGOProfileData; + struct OrderGlobalInits { unsigned int priority; unsigned int lex_order; @@ -258,6 +259,7 @@ class CodeGenModule : public CodeGenTypeCache { ARCEntrypoints *ARCData; llvm::MDNode *NoObjCARCExceptionsMetadata; RREntrypoints *RRData; + PGOProfileData *PGOData; // WeakRefReferences - A set of references that have only been seen via // a weakref so far. This is used to remove the weak of the reference if we @@ -479,6 +481,10 @@ public: return *RRData; } + PGOProfileData *getPGOData() const { + return PGOData; + } + llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) { return StaticLocalDeclMap[D]; } |
