Home
last modified time | relevance | path

Searched refs:boolAttr (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVCanonicalization.cpp29 static Optional<bool> getScalarOrSplatBoolAttr(Attribute boolAttr) { in getScalarOrSplatBoolAttr() argument
30 if (!boolAttr) in getScalarOrSplatBoolAttr()
33 auto type = boolAttr.getType(); in getScalarOrSplatBoolAttr()
35 auto attr = boolAttr.cast<BoolAttr>(); in getScalarOrSplatBoolAttr()
40 if (auto attr = boolAttr.dyn_cast<SplatElementsAttr>()) in getScalarOrSplatBoolAttr()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DSerializer.cpp309 uint32_t prepareConstantBool(Location loc, BoolAttr boolAttr,
1435 if (auto boolAttr = valueAttr.dyn_cast<BoolAttr>()) { in prepareConstantScalar() local
1436 return prepareConstantBool(loc, boolAttr, isSpec); in prepareConstantScalar()
1445 uint32_t Serializer::prepareConstantBool(Location loc, BoolAttr boolAttr, in prepareConstantBool() argument
1449 if (auto id = getConstantID(boolAttr)) { in prepareConstantBool()
1456 if (failed(processType(loc, boolAttr.getType(), typeID))) { in prepareConstantBool()
1461 auto opcode = boolAttr.getValue() in prepareConstantBool()
1469 constIDMap[boolAttr] = resultID; in prepareConstantBool()
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp43 if (auto boolAttr = srcAttr.dyn_cast<BoolAttr>()) in convertBoolAttr() local
44 return boolAttr; in convertBoolAttr()