| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 1078 return OrigTy; in getLCMType() 1080 if (OrigTy.isVector()) { in getLCMType() 1096 return OrigTy; in getLCMType() 1112 return OrigTy; in getLCMType() 1120 if (!OrigTy.isVector() || !TargetTy.isVector() || OrigTy == TargetTy || in getCoverTy() 1122 return getLCMType(OrigTy, TargetTy); in getCoverTy() 1127 return OrigTy; in getCoverTy() 1139 return OrigTy; in getGCDType() 1141 if (OrigTy.isVector()) { in getGCDType() 1142 LLT OrigElt = OrigTy.getElementType(); in getGCDType() [all …]
|
| H A D | CallLowering.cpp | 381 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local 382 if (OrigTy.isPointer()) { in buildCopyFromRegs() 383 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs() 394 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local 397 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs() 742 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local 752 if (NumParts != 1 || NewLLT != OrigTy) { in handleAssignments() 768 if (!Handler.isIncomingArgumentHandler() && OrigTy != ValTy) { in handleAssignments() 770 buildCopyToRegs(MIRBuilder, Args[i].Regs, Args[i].OrigRegs[0], OrigTy, in handleAssignments() 863 buildCopyFromRegs(MIRBuilder, Args[i].OrigRegs, Args[i].Regs, OrigTy, in handleAssignments()
|
| H A D | LoadStoreOpt.cpp | 295 LLT OrigTy = MRI->getType(StoresToMerge[0]->getValueReg()); in mergeStores() local 304 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy); in mergeStores() 311 unsigned MaxSizeBits = NumPow2 * OrigTy.getSizeInBits().getFixedValue(); in mergeStores() 323 if (MergeSizeBits <= OrigTy.getSizeInBits()) in mergeStores() 326 unsigned NumStoresToMerge = MergeSizeBits / OrigTy.getSizeInBits(); in mergeStores()
|
| H A D | LegalizerHelper.cpp | 56 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() argument 59 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown() 69 unsigned EltSize = OrigTy.getScalarSizeInBits(); in getNarrowTypeBreakDown() 2188 LLT OrigTy = MRI.getType(MI.getOperand(0).getReg()); in widenScalarAddSubOverflow() local 2189 auto TruncOp = MIRBuilder.buildTrunc(OrigTy, NewOp); in widenScalarAddSubOverflow() 7763 LLT OrigTy = MRI.getType(Result); in lowerSMULH_UMULH() local 7764 auto SizeInBits = OrigTy.getScalarSizeInBits(); in lowerSMULH_UMULH() 7765 LLT WideTy = OrigTy.changeElementSize(SizeInBits * 2); in lowerSMULH_UMULH()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | ThreadSanitizer.cpp | 143 int getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, const DataLayout &DL); 593 Type *OrigTy = getLoadStoreType(II.Inst); in instrumentLoadOrStore() local 601 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentLoadOrStore() 635 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore() 720 Type *OrigTy = LI->getType(); in instrumentAtomic() local 721 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentAtomic() 727 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic() 804 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, in getMemoryAccessFuncIndex() argument 806 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex() 807 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex()
|
| H A D | DataFlowSanitizer.cpp | 554 Constant *getZeroShadow(Type *OrigTy); 566 Type *getShadowTy(Type *OrigTy); 933 Constant *DataFlowSanitizer::getZeroShadow(Type *OrigTy) { in getZeroShadow() argument 934 if (!isa<ArrayType>(OrigTy) && !isa<StructType>(OrigTy)) in getZeroShadow() 936 Type *ShadowTy = getShadowTy(OrigTy); in getZeroShadow() 1103 Type *DataFlowSanitizer::getShadowTy(Type *OrigTy) { in getShadowTy() argument 1104 if (!OrigTy->isSized()) in getShadowTy() 1106 if (isa<IntegerType>(OrigTy)) in getShadowTy() 1108 if (isa<VectorType>(OrigTy)) in getShadowTy() 1110 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) in getShadowTy() [all …]
|
| H A D | MemorySanitizer.cpp | 1561 Type *getShadowTy(Type *OrigTy) { in getShadowTy() 1562 if (!OrigTy->isSized()) { in getShadowTy() 1567 if (IntegerType *IT = dyn_cast<IntegerType>(OrigTy)) in getShadowTy() 1570 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) { in getShadowTy() 1575 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) { in getShadowTy() 1579 if (StructType *ST = dyn_cast<StructType>(OrigTy)) { in getShadowTy() 1587 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy() 1878 Constant *getCleanShadow(Type *OrigTy) { in getCleanShadow() 1879 Type *ShadowTy = getShadowTy(OrigTy); in getCleanShadow()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | Mips.cpp | 350 QualType OrigTy) const { in EmitVAArg() 351 QualType Ty = OrigTy; in EmitVAArg() 383 Address Temp = CGF.CreateMemTemp(OrigTy, "vaarg.promotion-temp"); in EmitVAArg() 387 llvm::Type *IntTy = (OrigTy->isIntegerType() ? Temp.getElementType() in EmitVAArg() 390 if (OrigTy->isPointerType()) in EmitVAArg()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 995 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression() local 997 uint64_t OrigTySize = Ctx.getTypeSize(OrigTy); in rewriteToNumericBoxedExpression() 1010 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression() 1017 if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg)) in rewriteToNumericBoxedExpression() 1019 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression() 1105 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression() 1135 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local 1136 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper() 1137 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper() 1146 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CastToStructChecker.cpp | 42 QualType OrigTy = Ctx.getCanonicalType(E->getType()); in VisitCastExpr() local 45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 186 Type *OrigTy = CI->getArgOperand(VFParam.ParamPos)->getType(); in replaceWithCallToVeclib() local 187 if (OrigTy->isVectorTy() != (VFParam.ParamKind == VFParamKind::Vector)) { in replaceWithCallToVeclib() 190 << ": " << *OrigTy << "\n"); in replaceWithCallToVeclib()
|
| H A D | RegisterBankInfo.cpp | 480 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local 482 if (OrigTy != NewTy) { in applyDefaultMapping() 487 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping() 491 << OrigTy); in applyDefaultMapping() 492 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
|
| H A D | AtomicExpandPass.cpp | 543 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local 546 assert(!OrigTy->isPointerTy()); in createCmpXchgInstFun() 547 bool NeedBitcast = OrigTy->isFloatingPointTy(); in createCmpXchgInstFun() 549 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun() 561 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
|
| H A D | TypePromotion.cpp | 777 Type *OrigTy = V->getType(); in TryToPromote() local 778 TypeSize = OrigTy->getPrimitiveSizeInBits().getFixedValue(); in TryToPromote()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | Utils.h | 351 LLT getLCMType(LLT OrigTy, LLT TargetTy); 356 LLT getCoverTy(LLT OrigTy, LLT TargetTy); 372 LLT getGCDType(LLT OrigTy, LLT TargetTy);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 789 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local 793 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost() 804 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local 808 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.h | 839 bool IsFixed, bool IsRet, Type *OrigTy, 986 bool IsRet, Type *OrigTy, const RISCVTargetLowering &TLI, 992 bool IsRet, Type *OrigTy, const RISCVTargetLowering &TLI,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelLowering.h | 248 bool IsFixed, bool IsReg, Type *OrigTy);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 2332 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local 2333 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue() 2334 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue() 2335 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue() 2341 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue() 2342 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue() 2634 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local 2635 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue() 2636 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue() 2637 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue() [all …]
|
| H A D | CGDecl.cpp | 1096 llvm::Type *OrigTy = constant->getType(); in constWithPadding() local 1097 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding() 1099 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 7035 auto OrigTy = DT->getOriginalType(); in deduceOpenCLAddressSpace() local 7036 if (!OrigTy.hasAddressSpace() && OrigTy->isArrayType()) { in deduceOpenCLAddressSpace() 7039 OrigTy = Context.getAddrSpaceQualType(OrigTy, ImplAS); in deduceOpenCLAddressSpace() 7040 OrigTy = QualType(Context.getAsArrayType(OrigTy), 0); in deduceOpenCLAddressSpace() 7042 Type = Context.getDecayedType(OrigTy); in deduceOpenCLAddressSpace() 13231 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor() 13282 QualType OrigTy; member 13296 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDestructedTypeVisitor() 13349 QualType OrigTy; member 13362 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionCopyVisitor() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 269 Type *OrigTy = V->getType(); in canEvaluateTruncated() local 284 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated() 312 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated() 330 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 1020 Type *OrigTy = In->getType(); in promoteTo() local 1021 assert(!OrigTy->isVoidTy() && "Invalid instruction to promote"); in promoteTo() 1054 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.cpp | 946 const DIType *OrigTy = Ty; in visitMapDefType() local 972 visitTypeEntry(OrigTy, TypeId, false, false); in visitMapDefType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeVectorOps.cpp | 1214 EVT OrigTy = cast<VTSDNode>(Node->getOperand(1))->getVT(); in ExpandSEXTINREG() local 1217 unsigned OrigBW = OrigTy.getScalarSizeInBits(); in ExpandSEXTINREG()
|