mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
add rules in tabgen for PTX COPY_ADDRESS of frameindex
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
178051fbae
commit
b812ee6d78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user