Skip to content

Commit 0b543e3

Browse files
authored
[TableGen] Set G_GLOBAL_VALUE out operand type to ptype0 (#161894)
I'm not familiar with how every target handles this generic opcode but I think it shouldn't break anything and it makes sense to use `ptype0` because `G_GLOBAL_VALUE` returns a pointer.
1 parent 1eaf081 commit 0b543e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Target/GenericOpcodes.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def G_FRAME_INDEX : GenericInstruction {
126126
}
127127

128128
def G_GLOBAL_VALUE : GenericInstruction {
129-
let OutOperandList = (outs type0:$dst);
129+
let OutOperandList = (outs ptype0:$dst);
130130
let InOperandList = (ins unknown:$src);
131131
let hasSideEffects = false;
132132
}

0 commit comments

Comments
 (0)