[PATCH] D113006: [NVPTX] Add MoveParam instruction for TargetExternalSymbol operand
Andrew Savonichev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 04:55:42 PDT 2021
asavonic created this revision.
asavonic added reviewers: tra, jlebar, jholewinski.
Herald added a subscriber: hiraditya.
asavonic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
TargetExternalSymbol is considered to be an immediate and not a register,
so machine verifier emits an error:
*** Bad machine code: Expected a register operand. ***
- function: static_offset
- basic block: %bb.0 bb (0x560e9b306028)
- instruction: %3:int64regs = MoveParamI64 &static_offset_param_1
- operand 1: &static_offset_param_1
The patch adds variants of this instruction with an immediate operand
for byval arguments on 64-bit and 32-bit targets.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113006
Files:
llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
llvm/test/CodeGen/NVPTX/lower-byval-args.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113006.384047.patch
Type: text/x-patch
Size: 8191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211102/d35438fd/attachment.bin>
More information about the llvm-commits
mailing list