We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e88473 commit 1b1ebf2Copy full SHA for 1b1ebf2
lib/gc/Transforms/Pipeline.cpp
@@ -56,8 +56,8 @@ void populateVectorPasses(mlir::PassManager &pm) {
56
pm.addNestedPass<func::FuncOp>(math::createMathLegalizeToF32());
57
// sourceTypeStrs can be extended
58
arith::ArithEmulateUnsupportedFloatsOptions options;
59
- const static std::string strType = "bf16";
60
- options.sourceTypeStrs = {&strType, 1};
+ std::array<std::string, 1> typeStr = {"bf16"};
+ options.sourceTypeStrs = typeStr;
61
options.targetTypeStr = "f32";
62
pm.addNestedPass<func::FuncOp>(
63
arith::createArithEmulateUnsupportedFloats(options));
0 commit comments