class MemoryOpWithAlignmentBase {
code setAlignmentCode = [{
if ($alignment.has_value()) {
- auto align = $alignment.value();
+ auto align = *$alignment;
if (align != 0)
inst->setAlignment(llvm::Align(align));
}
# " \"" # op[2].ptx_elt_type # "\" == eltypeC && "
# " \"" # op[3].ptx_elt_type # "\" == eltypeD "
# " && (sat.has_value() ? " # sat # " == static_cast<int>(*sat) : true)"
- # !if(!ne(b1op, ""), " && (b1Op.has_value() ? MMAB1Op::" # b1op # " == b1Op.value() : true)", "") # ")\n"
+ # !if(!ne(b1op, ""), " && (b1Op.has_value() ? MMAB1Op::" # b1op # " == *b1Op : true)", "") # ")\n"
# " return " #
MMA_SYNC_NAME<layoutA, layoutB, b1op, sat, op[0], op[1], op[2], op[3]>.id # ";",
"") // if supported
$shape.getM(), $shape.getN(), $shape.getK(),
$b1Op, $intOverflowBehavior,
$layoutA, $layoutB,
- $multiplicandAPtxType.value(),
- $multiplicandBPtxType.value(),
+ *$multiplicandAPtxType,
+ *$multiplicandBPtxType,
op.accumPtxType(),
op.resultPtxType());
{
llvm::raw_string_ostream os(attrBuilderStr);
os << tgfmt(enumAttr.getConstBuilderTemplate(), &attrTypeCtx,
- "attrOptional.value()");
+ "*attrOptional");
}
// Build a string containing the cases that can be formatted as a keyword.