summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2013-05-24 12:26:52 +0000
committerDiego Novillo <dnovillo@google.com>2013-05-24 12:26:52 +0000
commitc63995394de60996ebfe52a47cf2e3a0716d7e3c (patch)
treea74f82a4691d823a2fc5ab2d87c5798f68174cf1 /llvm/include/llvm-c
parent646ec67e252f7daa5fe1f5d7719f247c89293b0c (diff)
downloadbcm5719-llvm-c63995394de60996ebfe52a47cf2e3a0716d7e3c.tar.gz
bcm5719-llvm-c63995394de60996ebfe52a47cf2e3a0716d7e3c.zip
Add a new function attribute 'cold' to functions.
Other than recognizing the attribute, the patch does little else. It changes the branch probability analyzer so that edges into blocks postdominated by a cold function are given low weight. Added analysis and code generation tests. Added documentation for the new attribute. llvm-svn: 182638
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 0920c5d0b0d..409c0f15c55 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -166,6 +166,7 @@ typedef enum {
and the path forward agreed upon.
LLVMAddressSafety = 1ULL << 32,
LLVMStackProtectStrongAttribute = 1ULL<<33
+ LLVMCold = 1ULL << 34
*/
} LLVMAttribute;
OpenPOWER on IntegriCloud