Home
last modified time | relevance | path

Searched refs:BoolType (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRAttrs.h35 class BoolType; variable
H A DCIRAttrs.td127 "", "cir::BoolType">:$type,
132 return $_get($_ctxt, cir::BoolType::get($_ctxt), value);
H A DCIRTypeConstraints.td50 def CIR_AnyBoolType : CIR_TypeBase<"::cir::BoolType", "boolean type">;
H A DCIRTypes.td285 // BoolType
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/
H A DCIROpenACCTypeInterfaces.cpp52 mlir::isa<cir::BoolType>(eleTy) || mlir::isa<cir::PointerType>(eleTy)) in getPointeeTypeCategory()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRDialect.cpp324 if (!mlir::isa<cir::BoolType>(opType)) in checkConstantTypes()
388 if (!mlir::isa<cir::BoolType>(resType)) in verify()
395 if (!mlir::isa<cir::BoolType>(resType)) in verify()
458 if (!mlir::isa<cir::BoolType>(resType)) in verify()
463 if (!mlir::isa<cir::BoolType>(srcType)) in verify()
477 if (!mlir::isa<cir::BoolType>(srcType)) in verify()
818 Type boolType = cir::BoolType::get(builder.getContext()); in parse()
1673 return isa<cir::BoolType>(op.getInput().getType()) && in isBoolNot()
H A DCIRTypes.cpp689 BoolType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout, in getTypeSizeInBits()
695 BoolType::getABIAlignment(const ::mlir::DataLayout &dataLayout, in getABIAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp562 Type *BoolType = Type::getInt1Ty(F.getContext()); in createTailRecurseLoopHeader() local
565 RetKnownPN = PHINode::Create(BoolType, 2, "ret.known.tr"); in createTailRecurseLoopHeader()
569 RetKnownPN->addIncoming(ConstantInt::getFalse(BoolType), NewEntry); in createTailRecurseLoopHeader()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h103 if (mlir::isa<cir::BoolType>(ty)) { in getZeroInitAttr()
115 cir::BoolType getBoolTy() { return cir::BoolType::get(getContext()); } in getBoolTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVBuiltins.cpp445 SPIRVType *BoolType = GR->getOrCreateSPIRVBoolType(MIRBuilder, true); in buildBoolRegister() local
449 BoolType = GR->getOrCreateSPIRVVectorType(BoolType, VectorElements, in buildBoolRegister()
452 cast<FixedVectorType>(GR->getTypeForSPIRVType(BoolType)); in buildBoolRegister()
461 GR->assignSPIRVTypeToVReg(BoolType, ResultRegister, MIRBuilder.getMF()); in buildBoolRegister()
462 return std::make_tuple(ResultRegister, BoolType); in buildBoolRegister()
1212 SPIRVType *BoolType = GR->getOrCreateSPIRVBoolType(MIRBuilder, true); in generateGroupInst() local
1221 BoolType, true); in generateGroupInst()
1226 GR->assignSPIRVTypeToVReg(BoolType, Arg0, MIRBuilder.getMF()); in generateGroupInst()
1230 insertAssignInstr(Arg0, nullptr, BoolType, GR, MIRBuilder, in generateGroupInst()
1545 auto BoolType = GR->getOrCreateSPIRVBoolType(MIRBuilder, true); in genWorkgroupQuery() local
[all …]
H A DSPIRVInstructionSelector.cpp1442 SPIRVType *BoolType = GR.getOrCreateSPIRVBoolType(I, TII); in selectOverflowArith() local
1445 BoolType = GR.getOrCreateSPIRVVectorType(BoolType, N, I, TII); in selectOverflowArith()
1446 Register BoolTypeReg = GR.getSPIRVTypeID(BoolType); in selectOverflowArith()
2621 SPIRVType *BoolType = GR.getOrCreateSPIRVBoolType(I, TII); in selectSUCmp() local
2624 BoolType = GR.getOrCreateSPIRVVectorType(BoolType, N, I, TII); in selectSUCmp()
2625 Register BoolTypeReg = GR.getSPIRVTypeID(BoolType); in selectSUCmp()
3654 SPIRVType *BoolType = GR.getOrCreateSPIRVBoolType(I, TII); in selectFirstBitSet64() local
3669 BoolType = GR.getOrCreateSPIRVVectorType(BoolType, ComponentCount, in selectFirstBitSet64()
3694 Register BReg = MRI->createVirtualRegister(GR.getRegClass(BoolType)); in selectFirstBitSet64()
3695 if (!selectOpWithSrcs(BReg, BoolType, I, {PrimaryReg, NegOneReg}, in selectFirstBitSet64()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp73 if (isa<cir::BoolType>(type)) { in convertTypeForMemory()
120 if (auto boolTy = mlir::dyn_cast<cir::BoolType>(op.getType())) { in emitFromMemory()
137 if (auto boolTy = mlir::dyn_cast<cir::BoolType>(origType)) { in emitToMemory()
1010 } else if (mlir::isa<cir::BoolType>(op.getType())) { in matchAndRewrite()
1483 if (mlir::isa<cir::BoolType>(elementType)) { in matchAndRewrite()
1539 if (!mlir::isa<cir::IntType, cir::BoolType, cir::FPTypeInterface, in matchAndRewrite()
1834 if (mlir::isa<cir::BoolType>(op.getTrueValue().getType())) { in matchAndRewrite()
1876 converter.addConversion([&](cir::BoolType type) -> mlir::Type { in prepareTypeConverter()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprScalar.cpp105 if (mlir::isa<cir::BoolType>(dstTy)) in maybePromoteBoolResult()
255 cir::BoolType boolTy = builder.getBoolTy(); in emitFloatToBoolConversion()
266 cir::BoolType boolTy = builder.getBoolTy(); in emitIntToBoolConversion()
335 if (mlir::isa<cir::BoolType>(srcTy)) { in emitScalarCast()
H A DCIRGenTypes.cpp302 resultType = cir::BoolType::get(&getMLIRContext()); in convertType()
H A DCIRGenExprConstant.cpp684 if (mlir::isa<cir::BoolType>(ty)) in tryEmitPrivate()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/
H A DFlattenCFG.cpp214 op.getLoc(), cir::BoolType::get(op.getContext()), cir::CmpOpKind::le, in condBrToRangeDestination()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaHLSL.cpp2605 QualType BoolType = S->getASTContext().BoolTy; in CheckWaveActive() local
2610 if (S->Context.hasSameUnqualifiedType(ArgType, BoolType) || in CheckWaveActive()
2612 S->Context.hasSameUnqualifiedType(VTy->getElementType(), BoolType))) { in CheckWaveActive()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp3635 TargetLoweringBase::BooleanContent BoolType = TLI.getBooleanContents(NVT); in ExpandIntRes_ADDSUB() local
3652 switch (BoolType) { in ExpandIntRes_ADDSUB()
3687 if (BoolType == TargetLoweringBase::ZeroOrOneBooleanContent) in ExpandIntRes_ADDSUB()
3707 if (BoolType == TargetLoweringBase::ZeroOrOneBooleanContent) in ExpandIntRes_ADDSUB()
H A DTargetLowering.cpp7893 EVT BoolType = getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT); in expandMUL_LOHI() local
7901 Next = DAG.getNode(ISD::UADDO_CARRY, dl, DAG.getVTList(VT, BoolType), Next, in expandMUL_LOHI()
7902 Merge(Lo, Hi), DAG.getConstant(0, dl, BoolType)); in expandMUL_LOHI()
7915 Hi = DAG.getNode(ISD::UADDO_CARRY, dl, DAG.getVTList(HiLoVT, BoolType), Hi, in expandMUL_LOHI()