[PATCH] D36990: [GISel]: Translate phi into generic G_PHI instruction
Aditya Nandakumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 16:41:46 PDT 2017
aditya_nandakumar created this revision.
Herald added a subscriber: javed.absar.
Translate phi instructions into generic G_PHI instructions.
This has the same semantic as PHI but has types for operands.
This lets us verify that the G_PHI has compatible types for all operands.
This also allows specifying legalization actions for weird PHI types.
Repository:
rL LLVM
https://reviews.llvm.org/D36990
Files:
include/llvm/CodeGen/MachineInstr.h
include/llvm/Target/GenericOpcodes.td
include/llvm/Target/TargetOpcodes.def
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/MachineVerifier.cpp
lib/Target/AArch64/AArch64InstructionSelector.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
lib/Target/AArch64/AArch64RegisterBankInfo.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
test/CodeGen/AArch64/GlobalISel/select-phi.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36990.112090.patch
Type: text/x-patch
Size: 10799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170821/b03c20a5/attachment.bin>
More information about the llvm-commits
mailing list