summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLToken.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 21:30:15 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 21:30:15 +0000
commit0a448fbca323014f1754cb16a56d698cdb18d258 (patch)
tree6b2b2c025ef9c60421e610db2a1bc02a54890629 /llvm/lib/AsmParser/LLToken.h
parentdf7be5105a124233d063bfb55dfe4b80f88e0481 (diff)
downloadbcm5719-llvm-0a448fbca323014f1754cb16a56d698cdb18d258.tar.gz
bcm5719-llvm-0a448fbca323014f1754cb16a56d698cdb18d258.zip
IR: Implement uselistorder assembly directives
Implement `uselistorder` and `uselistorder_bb` assembly directives, which allow the use-list order to be recovered when round-tripping to assembly. This is the bulk of PR20515. llvm-svn: 216025
Diffstat (limited to 'llvm/lib/AsmParser/LLToken.h')
-rw-r--r--llvm/lib/AsmParser/LLToken.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLToken.h b/llvm/lib/AsmParser/LLToken.h
index 67cd6c9b755..2b39ebd2b57 100644
--- a/llvm/lib/AsmParser/LLToken.h
+++ b/llvm/lib/AsmParser/LLToken.h
@@ -180,6 +180,9 @@ namespace lltok {
kw_extractelement, kw_insertelement, kw_shufflevector,
kw_extractvalue, kw_insertvalue, kw_blockaddress,
+ // Use-list order directives.
+ kw_uselistorder, kw_uselistorder_bb,
+
// Unsigned Valued tokens (UIntVal).
GlobalID, // @42
LocalVarID, // %42
OpenPOWER on IntegriCloud