================
@@ -831,6 +831,65 @@ static cir::VectorType getNeonType(CIRGenFunction *cgf,
NeonTypeFlags typeFlags,
llvm_unreachable("Unknown vector element type!");
}
+// Get integer from a mlir::Value that is an int constant or a constant op.
----------------
banach-space wrote:
[nit] IIUC, this comment is only partially correct. This method assumes that
`val` is always defined by `cir::ConstantOp` and returns the constant int
argument.
https://github.com/llvm/llvm-project/pull/186693
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits