summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/RISCV/AsmParser
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2018-05-17 17:31:27 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2018-05-17 17:31:27 +0000
commitef0ebf2806b57e73bdd93f8ffffde164dda6e68c (patch)
tree24d0fc38af584dac47af8d33940699be175fc389 /llvm/lib/Target/RISCV/AsmParser
parent6dcea6d28fe1e8257de84595392dc9f321b68dfa (diff)
downloadbcm5719-llvm-ef0ebf2806b57e73bdd93f8ffffde164dda6e68c.tar.gz
bcm5719-llvm-ef0ebf2806b57e73bdd93f8ffffde164dda6e68c.zip
[RISCV] Implement MC layer support for the tail pseudoinstruction
Summary: This patch implements MC support for tail psuedo instruction. A follow-up patch implements the codegen support as well as handling of the indirect tail pseudo instruction. Reviewers: asb, apazos Reviewed By: asb Subscribers: rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, llvm-commits Differential Revision: https://reviews.llvm.org/D46221 llvm-svn: 332634
Diffstat (limited to 'llvm/lib/Target/RISCV/AsmParser')
-rw-r--r--llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index c51e4b3c606..b0f82623dd0 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -943,7 +943,8 @@ bool RISCVAsmParser::ParseInstruction(ParseInstructionInfo &Info,
return false;
// Parse first operand
- if (parseOperand(Operands, Name == "call"))
+ bool ForceImmediate = (Name == "call" || Name == "tail");
+ if (parseOperand(Operands, ForceImmediate))
return true;
// Parse until end of statement, consuming commas between operands
OpenPOWER on IntegriCloud