diff options
| author | Dan Bailey <dan@dneg.com> | 2011-11-11 14:45:06 +0000 |
|---|---|---|
| committer | Dan Bailey <dan@dneg.com> | 2011-11-11 14:45:06 +0000 |
| commit | 80cd65bfa9d97c520632e18000b4c571458882f5 (patch) | |
| tree | 0d0027de94d4124530bfd14d71121e06172e7c78 | |
| parent | b9af5f6eff28b88c5aed420973559b4be3c5fbdd (diff) | |
| download | bcm5719-llvm-80cd65bfa9d97c520632e18000b4c571458882f5.tar.gz bcm5719-llvm-80cd65bfa9d97c520632e18000b4c571458882f5.zip | |
add rules in tabgen for PTX COPY_ADDRESS of frameindex
llvm-svn: 144387
| -rw-r--r-- | llvm/lib/Target/PTX/PTXInstrInfo.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PTX/PTXInstrInfo.td b/llvm/lib/Target/PTX/PTXInstrInfo.td index fbddac5ce7d..bcd5bcf734e 100644 --- a/llvm/lib/Target/PTX/PTXInstrInfo.td +++ b/llvm/lib/Target/PTX/PTXInstrInfo.td @@ -680,6 +680,12 @@ let isReMaterializable = 1, isAsCheapAsAMove = 1 in { def MOVaddr64 : InstPTX<(outs RegI64:$d), (ins i64imm:$a), "mov.u64\t$d, $a", [(set RegI64:$d, (PTXcopyaddress tglobaladdr:$a))]>; + def MOVframe32 + : InstPTX<(outs RegI32:$d), (ins i32imm:$a), "cvta.local.u32\t$d, $a", + [(set RegI32:$d, (PTXcopyaddress frameindex:$a))]>; + def MOVframe64 + : InstPTX<(outs RegI64:$d), (ins i64imm:$a), "cvta.local.u64\t$d, $a", + [(set RegI64:$d, (PTXcopyaddress frameindex:$a))]>; } // PTX cvt instructions |

