summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.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/LLParser.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/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 556b385c3c4..3936c6e8731 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -438,6 +438,12 @@ namespace llvm {
int ParseGetElementPtr(Instruction *&I, PerFunctionState &PFS);
int ParseExtractValue(Instruction *&I, PerFunctionState &PFS);
int ParseInsertValue(Instruction *&I, PerFunctionState &PFS);
+
+ // Use-list order directives.
+ bool ParseUseListOrder(PerFunctionState *PFS = nullptr);
+ bool ParseUseListOrderBB();
+ bool ParseUseListOrderIndexes(SmallVectorImpl<unsigned> &Indexes);
+ bool sortUseListOrder(Value *V, ArrayRef<unsigned> Indexes, SMLoc Loc);
};
} // End llvm namespace
OpenPOWER on IntegriCloud