summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-07-17 22:07:03 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-07-17 22:07:03 +0000
commitd225595dcfe550569193d19341d1d67c230efc5e (patch)
tree173affb81a42fc97282e805e2758aa14633eb4e3 /llvm/lib/AsmParser/LLParser.h
parent8041e59370351cad70f5f647d55d806af05edef2 (diff)
downloadbcm5719-llvm-d225595dcfe550569193d19341d1d67c230efc5e.tar.gz
bcm5719-llvm-d225595dcfe550569193d19341d1d67c230efc5e.zip
AsmParser: Add a function to parse a standalone constant value.
This commit extends the interface provided by the AsmParser library by adding a function that allows the user to parse a standalone contant value. This change is useful for MIR serialization, as it will allow the MIR Parser to parse the constant values in a machine constant pool. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10280 llvm-svn: 242579
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 6e57b3e0667..7efcac7a19a 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -143,6 +143,8 @@ namespace llvm {
Slots(Slots), BlockAddressPFS(nullptr) {}
bool Run();
+ bool parseStandaloneConstantValue(Constant *&C);
+
LLVMContext &getContext() { return Context; }
private:
@@ -343,6 +345,7 @@ namespace llvm {
bool ConvertValIDToValue(Type *Ty, ValID &ID, Value *&V,
PerFunctionState *PFS);
+ bool parseConstantValue(Type *Ty, Constant *&C);
bool ParseValue(Type *Ty, Value *&V, PerFunctionState *PFS);
bool ParseValue(Type *Ty, Value *&V, PerFunctionState &PFS) {
return ParseValue(Ty, V, &PFS);
OpenPOWER on IntegriCloud