[Mlir-commits] [mlir] [MLIR][NVVM] Add support for f6x2 conversion (PR #136537)
Durgadoss R
llvmlistbot at llvm.org
Tue Apr 22 11:53:30 PDT 2025
================
@@ -133,6 +134,33 @@ LogicalResult CvtFloatToTF32Op::verify() {
return success();
}
+bool CvtToF6x2Op::isPacked() {
+ if (getDst().getType().isInteger(16)) {
+ return true;
+ }
+ return false;
+}
+
+llvm::Value *CvtToF6x2Op::getCastedResult(llvm::Value *packedI16,
+ llvm::IRBuilderBase &builder) {
+ if (isPacked()) {
+ return packedI16;
+ }
----------------
durga4github wrote:
As a convention, I think, we do not use braces around single-line statements..
https://github.com/llvm/llvm-project/pull/136537
More information about the Mlir-commits
mailing list