[llvm] [LLVM][NVPTX]Add BF16 vector instruction and fix lowering rules (PR #69415)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 12:10:09 PDT 2023


================
@@ -490,6 +500,8 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
 
   setBF16OperationAction(ISD::SETCC, MVT::bf16, Legal, Promote);
   setBF16OperationAction(ISD::SETCC, MVT::v2bf16, Legal, Expand);
+  if (getOperationAction(ISD::SETCC, MVT::bf16) == Promote)
----------------
Artem-B wrote:

Nit: move `setBF16OperationAction(ISD::SETCC, MVT::bf16, Legal, Promote)` down here, so the parts relevant to promoting the op are close together.

https://github.com/llvm/llvm-project/pull/69415


More information about the llvm-commits mailing list