summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLToken.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-06-27 18:19:56 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-06-27 18:19:56 +0000
commitdad0a645a7b392900c9fb34f11815060d03a2233 (patch)
tree99d27820893e856b1492d86fb612f2a2d147cc99 /llvm/lib/AsmParser/LLToken.h
parent3260478c10b56f9ee81cc415c962356b1153cd1c (diff)
downloadbcm5719-llvm-dad0a645a7b392900c9fb34f11815060d03a2233.tar.gz
bcm5719-llvm-dad0a645a7b392900c9fb34f11815060d03a2233.zip
IR: Add COMDATs to the IR
This new IR facility allows us to represent the object-file semantic of a COMDAT group. COMDATs allow us to tie together sections and make the inclusion of one dependent on another. This is required to implement features like MS ABI VFTables and optimizing away certain kinds of initialization in C++. This functionality is only representable in COFF and ELF, Mach-O has no similar mechanism. Differential Revision: http://reviews.llvm.org/D4178 llvm-svn: 211920
Diffstat (limited to 'llvm/lib/AsmParser/LLToken.h')
-rw-r--r--llvm/lib/AsmParser/LLToken.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLToken.h b/llvm/lib/AsmParser/LLToken.h
index af8b0da78bf..534d82415fd 100644
--- a/llvm/lib/AsmParser/LLToken.h
+++ b/llvm/lib/AsmParser/LLToken.h
@@ -142,6 +142,15 @@ namespace lltok {
kw_type,
kw_opaque,
+ kw_comdat,
+
+ // Comdat types
+ kw_any,
+ kw_exactmatch,
+ kw_largest,
+ kw_noduplicates,
+ kw_samesize,
+
kw_eq, kw_ne, kw_slt, kw_sgt, kw_sle, kw_sge, kw_ult, kw_ugt, kw_ule,
kw_uge, kw_oeq, kw_one, kw_olt, kw_ogt, kw_ole, kw_oge, kw_ord, kw_uno,
kw_ueq, kw_une,
@@ -180,6 +189,7 @@ namespace lltok {
// String valued tokens (StrVal).
LabelStr, // foo:
GlobalVar, // @foo @"foo"
+ ComdatVar, // $foo
LocalVar, // %foo %"foo"
MetadataVar, // !foo
StringConstant, // "foo"
OpenPOWER on IntegriCloud