[PATCH] D17432: [NVPTX] Nix hack used to emit '{' and '}' for NVPTX calls.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 11:28:42 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL262372: [NVPTX] Nix hack used to emit '{' and '}' for NVPTX calls. (authored by jlebar).
Changed prior to commit:
http://reviews.llvm.org/D17432?vs=48443&id=49519#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17432
Files:
llvm/trunk/lib/Target/NVPTX/NVPTXInstrInfo.td
Index: llvm/trunk/lib/Target/NVPTX/NVPTXInstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXInstrInfo.td
+++ llvm/trunk/lib/Target/NVPTX/NVPTXInstrInfo.td
@@ -2682,20 +2682,14 @@
class Pseudo<dag outs, dag ins, string asmstr, list<dag> pattern>
: NVPTXInst<outs, ins, asmstr, pattern>;
-// @TODO: We use some tricks here to emit curly braces. Can we clean this up
-// a bit without TableGen modifications?
def Callseq_Start :
NVPTXInst<(outs), (ins i32imm:$amt),
- "// Callseq Start $amt\n"
- "\t{{\n"
- "\t.reg .b32 temp_param_reg;\n"
- "\t// <end>}}",
+ "\\{ // callseq $amt\n"
+ "\t.reg .b32 temp_param_reg;",
[(callseq_start timm:$amt)]>;
def Callseq_End :
NVPTXInst<(outs), (ins i32imm:$amt1, i32imm:$amt2),
- "\n"
- "\t//{{\n"
- "\t}}// Callseq End $amt1",
+ "\\} // callseq $amt1",
[(callseq_end timm:$amt1, timm:$amt2)]>;
// trap instruction
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17432.49519.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/9fb69a1b/attachment.bin>
More information about the llvm-commits
mailing list