| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded() 41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 96 Type *OverloadedTypes[] = {Matrix->getType(), Stride->getType()}; 158 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateAdd() 159 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateAdd() 165 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateAdd() 183 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateSub() 184 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateSub() 190 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateSub() [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | SValTest.cpp | 167 ASSERT_FALSE(X.getType(Context).isNull()); 171 ASSERT_FALSE(Y.getType(Context).isNull()); 176 ASSERT_FALSE(Z.getType(Context).isNull()); 187 ASSERT_FALSE(A.getType(Context).isNull()); 194 ASSERT_FALSE(B.getType(Context).isNull()); 198 ASSERT_FALSE(C.getType(Context).isNull()); 211 ASSERT_FALSE(X.getType(Context).isNull()); 212 EXPECT_EQ(Int, X.getType(Context)); 216 EXPECT_EQ(Int, Y.getType(Context)); 221 EXPECT_EQ(Int, Z.getType(Context)); [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 39 ParamTys.push_back((*I)->getType()); in ReplaceCallWith() 56 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP() 119 ConstantInt::get(V->getType(), in LowerBSWAP() 123 ConstantInt::get(V->getType(), in LowerBSWAP() 161 Value *Count = ConstantInt::get(V->getType(), 0); in LowerCTPOP() 193 Value *ShVal = ConstantInt::get(V->getType(), i); in LowerCTLZ() 219 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 360 Type *IntPtr = DL.getIntPtrType(Op0->getType()); in LowerIntrinsicCall() 435 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall() 456 if (CI->arg_size() != 1 || CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap() [all …]
|
| H A D | MachineStableHash.cpp | 64 switch (MO.getType()) { in stableHashValue() 75 return stable_hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), in stableHashValue() 85 return hash_combine(MO.getType(), MO.getTargetFlags(), ValHash); in stableHashValue() 105 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 114 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 132 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 138 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 142 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 145 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 148 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | CanonicalizationPatterns.td | 22 def IdenticalTypePred : Constraint<CPred<"$0.getType() == $1.getType()">>; 29 : Constraint<CPred<"(($0.getType().isa<mlir::IntegerType>() && " 32 " ($0.getType().isa<mlir::FloatType>() && " 33 " $1.getType().isa<mlir::FloatType>() && " 35 "(($0.getType().getIntOrFloatBitWidth() <= " 45 "$0.getType().isa<mlir::IntegerType>() && " 46 "$1.getType().isa<mlir::IntegerType>()">>; 51 "$0.getType().getIntOrFloatBitWidth() <= " 52 "$1.getType().getIntOrFloatBitWidth()">>; 54 "$0.getType().getIntOrFloatBitWidth() < " [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.cpp | 69 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 77 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 80 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 83 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 90 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 93 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 96 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 106 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() 117 CHECK(getType().isFloatTy()); in getFloatValue() 119 switch (getType().getFloatBitWidth()) { in getFloatValue() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MLProgram/IR/ |
| H A D | MLProgramOps.cpp | 187 if (referrent.getType() != getResult().getType()) { in verifySymbolUses() 190 << getResult().getType(); in verifySymbolUses() 215 if (referrent.getType() != getResult().getType()) in verifySymbolUses() 218 << getResult().getType(); in verifySymbolUses() 238 if (referrent.getType() != getResult().getType()) { in verifySymbolUses() 267 if (referrent.getType() != getValue().getType()) { in verifySymbolUses() 270 << getValue().getType(); in verifySymbolUses() 296 if (referrent.getType() != getValue().getType()) { in verifySymbolUses() 299 << getValue().getType(); in verifySymbolUses() 338 if (getOperand(i).getType() != results[i]) in verify() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 304 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms() 730 Shuf->getType() == Shuf->getOperand(0)->getType()) { in shrinkSplatShuffle() 777 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType(); in visitTrunc() 1009 if (In->getType() != Zext.getType()) in transformZExtICmp() 1053 if (Zext.getType() == In->getType()) in transformZExtICmp() 1249 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() 1332 X->getType() == CI.getType()) in visitZExt() 1339 X->getType() == CI.getType()) { in visitZExt() 1378 if (In->getType() != CI.getType()) in transformSExtICmp() 1434 if (CI.getType() == In->getType()) in transformSExtICmp() [all …]
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IslExprBuilder.cpp | 178 Type *MaxType = getType(Expr); in createOpUnary() 185 if (MaxType != V->getType()) in createOpUnary() 214 Type *Ty = getWidestType(V->getType(), OpV->getType()); in createOpNAry() 216 if (Ty != OpV->getType()) in createOpNAry() 219 if (Ty != V->getType()) in createOpNAry() 300 Type *Ty = getWidestType(NextIndex->getType(), IndexOp->getType()); in createAccessAddress() 326 Type *Ty = getWidestType(DimSize->getType(), IndexOp->getType()); in createAccessAddress() 504 auto *LHSTy = LHS->getType(); in createOpICmp() 505 auto *RHSTy = RHS->getType(); in createOpICmp() 515 if (LHS->getType() != RHS->getType()) { in createOpICmp() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 43 if (op.getInput1().front().getType() != op.getType()) { in matchAndRewrite() 173 input2.getType() == op.getType()) { in matchAndRewrite() 183 input1.getType() == op.getType()) { in matchAndRewrite() 210 input2.getType() == op.getType()) { in matchAndRewrite() 226 input1.getType() == op.getType()) { in matchAndRewrite() 282 op.getLoc(), denseAttr.getType(), denseAttr); in matchAndRewrite() 419 op, op.getType(), clampOp.getInput(), in matchAndRewrite() 441 if (getInput().getType() == getType()) in fold() 471 auto outputTy = getType().dyn_cast<RankedTensorType>(); in REDUCE_FOLDER() 522 if (allOnes && getInput1().getType() == getType()) in fold() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 1073 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1079 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1108 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1114 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1143 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1149 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue() 1871 if (Func->getType() != getType()) { in handleOperandChangeImpl() 1914 if (GV->getType() != getType()) in handleOperandChangeImpl() 2271 assert(C1->getType() == C2->getType() && in get() 2527 assert(LHS->getType() == RHS->getType()); in getICmp() [all …]
|
| H A D | ConstantFold.cpp | 95 Type *MidTy = Op->getType(); in foldConstantCastPair() 110 Type *SrcTy = V->getType(); in FoldBitCast() 190 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast() 215 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes() 495 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction() 529 auto *V1VTy = CondV->getType(); in ConstantFoldSelectInstruction() 587 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction() 1320 assert(V1->getType() == V2->getType() && in evaluateFCmpRelation() 1410 assert(V1->getType() == V2->getType() && in evaluateICmpRelation() 1877 CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy() && in ConstantFoldCompareInstruction() [all …]
|
| H A D | Instructions.cpp | 76 if (Op1->getType() != Op2->getType()) in areInvalidOperands() 2059 if (!isa<VectorType>(V1->getType()) || V1->getType() != V2->getType()) in isValidOperands() 2079 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType()) in isValidOperands() 2672 assert(getType() == LHS->getType() && in AssertOK() 2722 assert(getType() == LHS->getType() && in AssertOK() 2729 assert(getType() == LHS->getType() && in AssertOK() 2737 assert(getType() == LHS->getType() && in AssertOK() 2743 assert(getType() == LHS->getType() && in AssertOK() 2750 assert(getType() == LHS->getType() && in AssertOK() 2756 assert(getType() == LHS->getType() && in AssertOK() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 96 return V->getType() == Only; in onlyType() 106 return !V->getType()->isVoidTy(); in anyType() 114 return V->getType()->isIntegerTy(); in anyIntType() 122 return V->getType()->isFloatingPointTy(); in anyFloatType() 167 if (isa<ArrayType>(V->getType())) in anyAggregateType() 171 if (isa<StructType>(V->getType())) in anyAggregateType() 174 return V->getType()->isAggregateType(); in anyAggregateType() 184 return V->getType()->isVectorTy(); in anyVectorType() 197 return V->getType() == Cur[0]->getType(); in matchFirstType() 201 return makeConstantsWithType(Cur[0]->getType()); in matchFirstType() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprAgg.cpp | 130 EnsureDest(E->getType()); in VisitConstantExpr() 258 QualType RetTy = E->getType(); in withReturnValueSlot() 843 EnsureDest(E->getType()); in VisitCastExpr() 1075 EnsureDest(E->getType()); in VisitBinCmp() 1296 EmitFinalDestCopy(VE->getType(), CGF.MakeAddrLValue(ArgPtr, VE->getType())); in VisitVAArgExpr() 1303 EnsureDest(E->getType()); in VisitCXXBindTemporaryExpr() 1386 QualType T = E->getType(); in VisitCXXScalarValueInitExpr() 1392 QualType T = E->getType(); in VisitImplicitValueInitExpr() 1529 QualType type = LV.getType(); in EmitInitializationToLValue() 1605 EmitFinalDestCopy(E->getType(), CGF.MakeAddrLValue(GV, E->getType())); in VisitInitListExpr() [all …]
|
| H A D | CGExpr.cpp | 400 QualType Ty = Inner->getType(); in createReferenceTemporary() 627 QualType Ty = E->getType(); in EmitReferenceBindingToExpr() 1330 QualType Ty = E->getType(); in EmitLValue() 2105 assert((LV.getType()->isIntegerType() || LV.getType()->isPointerType()) && in EmitLoadOfGlobalRegLValue() 2395 assert((Dst.getType()->isIntegerType() || Dst.getType()->isPointerType()) && in EmitStoreThroughGlobalRegLValue() 2602 QualType T = E->getType(); in EmitGlobalVarDeclLValue() 2758 QualType T = E->getType(); in EmitDeclRefLValue() 3119 if (V->getType() == TargetTy) in EmitCheckValue() 4633 Dead->getType()); in HandleConditionalOperatorLValueSimpleCase() 4970 QualType FT = FD->getType(); in EmitRValueForField() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 184 !Op->getType()->isVectorTy()) { in preprocessCompositeConstants() 198 if (Op.get()->getType()->isSized()) in visitSwitchInst() 206 SmallVector<Type *, 2> Types = {I.getType(), I.getOperand(0)->getType()}; in visitGetElementPtrInst() 218 SmallVector<Type *, 2> Types = {I.getType(), I.getOperand(0)->getType()}; in visitBitCastInst() 229 SmallVector<Type *, 4> Types = {I.getType(), I.getOperand(0)->getType(), in visitInsertElementInst() 284 if (!I.getType()->isAggregateType()) in visitLoadInst() 307 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst() 353 Type *Ty = I->getType(); in insertAssignTypeIntrs() 361 TypeToAssign = t->second->getType(); in insertAssignTypeIntrs() 405 {Op->getType(), Op->getType()}, Op, Op); in processInstrAfterVisit() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 470 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBase() 491 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBaseWB() 561 {ResultTy, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset() 567 {ResultTy, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset() 631 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBase() 636 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBase() 653 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBaseWB() 658 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBaseWB() 713 {BasePtr->getType(), Offsets->getType(), Input->getType(), in tryCreateMaskedScatterOffset() 721 {BasePtr->getType(), Offsets->getType(), Input->getType()}, in tryCreateMaskedScatterOffset() [all …]
|
| H A D | ARMRegisterBankInfo.cpp | 238 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 283 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 296 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 303 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 363 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 377 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 379 LLT Ty2 = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() 391 LLT Ty2 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping() 401 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 423 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SwappedArgumentsCheck.cpp | 80 if (LHS->getType() == RHS->getType() || in check() 81 LHS->getType() != RHSFrom->getType() || in check() 82 RHS->getType() != LHSFrom->getType()) in check() 89 << LHS->getType() << LHSFrom->getType() << RHS->getType() in check() 90 << RHSFrom->getType() in check()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | VNCoercion.cpp | 20 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad() 82 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadType() 213 if (isFirstClassAggregateOrScalableType(StoredVal->getType())) in analyzeLoadFromClobberingStore() 238 if (!isa<IntegerType>(LI->getType()) || !LI->isSimple()) in getLoadLoadClobberFullWidthSize() 317 if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy()) in analyzeLoadFromClobberingLoad() 399 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper() 415 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper() 418 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper() 465 DL.getTypeStoreSize(SrcVal->getType()).getFixedSize(); in getLoadValueForLoad() 498 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in getLoadValueForLoad() [all …]
|
| H A D | ScalarEvolutionExpander.cpp | 66 if (U->getType() != Ty) in ReuseOrCreateCast() 182 if (V->getType() == Ty) in InsertNoopCastOfTo() 1091 if (IncV->getType() != PN->getType()) in expandIVInc() 1787 if (S->getType() == V->getType() && in FindValueInExprValueMap() 1926 if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy()) in replaceCongruentIVs() 1951 if (V->getType() != Phi->getType()) in replaceCongruentIVs() 1969 TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) { in replaceCongruentIVs() 1981 if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy()) in replaceCongruentIVs() 1994 if (OrigPhiRef->getType() == Phi->getType() && in replaceCongruentIVs() 2019 if (OrigInc->getType() != IsomorphicInc->getType()) { in replaceCongruentIVs() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | InferAddressSpaces.cpp | 285 I2P->getOperand(0)->getType(), I2P->getType(), in INITIALIZE_PASS_DEPENDENCY() 288 P2I->getOperand(0)->getType(), P2I->getType(), in INITIALIZE_PASS_DEPENDENCY() 304 assert(Op->getType()->isPointerTy()); in isAddressExpression() 311 return Op->getType()->isPointerTy(); in isAddressExpression() 365 Type *DestTy = II->getType(); in rewriteIntrinsicOperands() 366 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands() 415 assert(V->getType()->isPointerTy()); in appendsFlatAddressExpressionToPostorderStack() 463 if (!GEP->getType()->isVectorTy()) in collectFlatAddressExpressions() 489 if (!ASC->getType()->isVectorTy()) in collectFlatAddressExpressions() 583 if (Src->getType() != NewPtrType) in cloneInstructionWithNewAddressSpace() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 64 Type *VTy = V.getType(); in canSafelyConvertTo16Bit() 92 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit() 102 Type *VTy = V.getType(); in convertTo16Bit() 139 if (!InstToReplace.getType()->isVoidTy()) in modifyIntrinsicCall() 359 Type *Ty = II.getType(); in instCombineIntrinsic() 386 Type *Ty = II.getType(); in instCombineIntrinsic() 569 Type *Ty = II.getType(); in instCombineIntrinsic() 810 Type *Ty = SrcLHS->getType(); in instCombineIntrinsic() 843 II.getModule(), NewIID, {II.getType(), SrcLHS->getType()}); in instCombineIntrinsic() 969 Type *Ty = II.getType(); in instCombineIntrinsic() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/ |
| H A D | SparseTensorDialect.cpp | 231 if (getType() == getSource().getType()) in fold() 237 auto e = getSparseTensorEncoding(getTensor().getType()); in verify() 246 auto e = getSparseTensorEncoding(getTensor().getType()); in verify() 277 Type typ = region.getArgument(i).getType(); in verifyNumBlockArgs() 287 if (yield.getOperand().getType() != outputType) in verifyNumBlockArgs() 295 Type leftType = getX().getType(); in verify() 296 Type rightType = getY().getType(); in verify() 297 Type outputType = getOutput().getType(); in verify() 336 Type inputType = getX().getType(); in verify() 337 Type outputType = getOutput().getType(); in verify() [all …]
|