Home
last modified time | relevance | path

Searched refs:OrigTy (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1165 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument
1166 if (OrigTy.getSizeInBits() == TargetTy.getSizeInBits()) in getLCMType()
1167 return OrigTy; in getLCMType()
1169 if (OrigTy.isVector() && TargetTy.isVector()) { in getLCMType()
1170 LLT OrigElt = OrigTy.getElementType(); in getLCMType()
1179 assert(((OrigTy.isScalableVector() && !TargetTy.isFixedVector()) || in getLCMType()
1180 (OrigTy.isFixedVector() && !TargetTy.isScalableVector())) && in getLCMType()
1184 int GCDMinElts = std::gcd(OrigTy.getElementCount().getKnownMinValue(), in getLCMType()
1187 ElementCount Mul = OrigTy.getElementCount().multiplyCoefficientBy( in getLCMType()
1190 OrigTy.getElementType()); in getLCMType()
[all …]
H A DCallLowering.cpp411 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
412 if (OrigTy.isPointer()) { in buildCopyFromRegs()
413 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs()
424 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
427 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
788 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local
800 if (NumParts != 1 || NewLLT != OrigTy) { in handleAssignments()
823 if (!Handler.isIncomingArgumentHandler() && OrigTy != ValTy && in handleAssignments()
826 buildCopyToRegs(MIRBuilder, Args[i].Regs, Args[i].OrigRegs[0], OrigTy, in handleAssignments()
860 int FrameIdx = MFI.CreateStackObject(OrigTy.getScalarSizeInBits(), in handleAssignments()
[all …]
H A DLoadStoreOpt.cpp309 LLT OrigTy = MRI->getType(StoresToMerge[0]->getValueReg()); in mergeStores() local
318 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy); in mergeStores()
325 unsigned MaxSizeBits = NumPow2 * OrigTy.getSizeInBits().getFixedValue(); in mergeStores()
337 if (MergeSizeBits <= OrigTy.getSizeInBits()) in mergeStores()
340 unsigned NumStoresToMerge = MergeSizeBits / OrigTy.getSizeInBits(); in mergeStores()
H A DLegalizerHelper.cpp56 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() argument
59 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown()
69 unsigned EltSize = OrigTy.getScalarSizeInBits(); in getNarrowTypeBreakDown()
74 OrigTy.getElementType()); in getNarrowTypeBreakDown()
2252 LLT OrigTy = MRI.getType(MI.getOperand(0).getReg()); in widenScalarAddSubOverflow() local
2253 auto TruncOp = MIRBuilder.buildTrunc(OrigTy, NewOp); in widenScalarAddSubOverflow()
5669 LLT OrigTy = MRI.getType(MI.getOperand(1).getReg()); in moreElementsVector() local
5676 for (size_t i = OrigTy.getNumElements(), e = MoreTy.getNumElements(); in moreElementsVector()
8277 LLT OrigTy = MRI.getType(Result); in lowerSMULH_UMULH() local
8278 auto SizeInBits = OrigTy.getScalarSizeInBits(); in lowerSMULH_UMULH()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp142 int getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, const DataLayout &DL);
592 Type *OrigTy = getLoadStoreType(II.Inst); in instrumentLoadOrStore() local
600 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentLoadOrStore()
634 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
719 Type *OrigTy = LI->getType(); in instrumentAtomic() local
720 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentAtomic()
726 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic()
803 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, in getMemoryAccessFuncIndex() argument
805 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
806 if (OrigTy->isScalableTy()) { in getMemoryAccessFuncIndex()
[all …]
H A DDataFlowSanitizer.cpp556 Constant *getZeroShadow(Type *OrigTy);
568 Type *getShadowTy(Type *OrigTy);
937 Constant *DataFlowSanitizer::getZeroShadow(Type *OrigTy) { in getZeroShadow() argument
938 if (!isa<ArrayType>(OrigTy) && !isa<StructType>(OrigTy)) in getZeroShadow()
940 Type *ShadowTy = getShadowTy(OrigTy); in getZeroShadow()
1107 Type *DataFlowSanitizer::getShadowTy(Type *OrigTy) { in getShadowTy() argument
1108 if (!OrigTy->isSized()) in getShadowTy()
1110 if (isa<IntegerType>(OrigTy)) in getShadowTy()
1112 if (isa<VectorType>(OrigTy)) in getShadowTy()
1114 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) in getShadowTy()
[all …]
H A DMemorySanitizer.cpp1578 Type *getShadowTy(Type *OrigTy) { in getShadowTy()
1579 if (!OrigTy->isSized()) { in getShadowTy()
1584 if (IntegerType *IT = dyn_cast<IntegerType>(OrigTy)) in getShadowTy()
1587 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) { in getShadowTy()
1592 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) { in getShadowTy()
1596 if (StructType *ST = dyn_cast<StructType>(OrigTy)) { in getShadowTy()
1604 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy()
1895 Constant *getCleanShadow(Type *OrigTy) { in getCleanShadow()
1896 Type *ShadowTy = getShadowTy(OrigTy); in getCleanShadow()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DMips.cpp350 QualType OrigTy, AggValueSlot Slot) const { in EmitVAArg() argument
351 QualType Ty = OrigTy; in EmitVAArg()
382 llvm::Type *ValTy = CGF.ConvertType(OrigTy); in EmitVAArg()
386 llvm::Type *IntTy = (OrigTy->isIntegerType() ? ValTy : CGF.IntPtrTy); in EmitVAArg()
388 if (OrigTy->isPointerType()) in EmitVAArg()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp991 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression() local
993 uint64_t OrigTySize = Ctx.getTypeSize(OrigTy); in rewriteToNumericBoxedExpression()
1007 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
1014 if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg)) in rewriteToNumericBoxedExpression()
1016 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression()
1106 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression()
1136 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1137 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper()
1138 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper()
1147 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp168 Type *OrigTy = II->getArgOperand(VFParam.ParamPos)->getType(); in replaceWithCallToVeclib() local
169 if (OrigTy->isVectorTy() != (VFParam.ParamKind == VFParamKind::Vector)) { in replaceWithCallToVeclib()
172 << *OrigTy << "\n"); in replaceWithCallToVeclib()
H A DRegisterBankInfo.cpp480 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
482 if (OrigTy != NewTy) { in applyDefaultMapping()
488 TypeSize::isKnownLE(OrigTy.getSizeInBits(), NewTy.getSizeInBits()) && in applyDefaultMapping()
492 << OrigTy); in applyDefaultMapping()
493 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
H A DAtomicExpandPass.cpp578 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
581 assert(!OrigTy->isPointerTy()); in createCmpXchgInstFun()
582 bool NeedBitcast = OrigTy->isFloatingPointTy() || OrigTy->isVectorTy(); in createCmpXchgInstFun()
584 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
596 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
H A DTypePromotion.cpp785 Type *OrigTy = V->getType(); in TryToPromote() local
786 TypeSize = OrigTy->getPrimitiveSizeInBits().getFixedValue(); in TryToPromote()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastToStructChecker.cpp42 QualType OrigTy = Ctx.getCanonicalType(E->getType()); in VisitCastExpr() local
45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h360 LLT getLCMType(LLT OrigTy, LLT TargetTy);
365 LLT getCoverTy(LLT OrigTy, LLT TargetTy);
384 LLT getGCDType(LLT OrigTy, LLT TargetTy);
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp504 User *U, Type *OrigTy, std::unordered_set<Value *> &Visited, in deduceNestedTypeHelper() argument
507 return OrigTy; in deduceNestedTypeHelper()
515 return OrigTy; in deduceNestedTypeHelper()
518 if (dyn_cast<StructType>(OrigTy)) { in deduceNestedTypeHelper()
543 } else if (auto *ArrTy = dyn_cast<ArrayType>(OrigTy)) { in deduceNestedTypeHelper()
561 } else if (auto *VecTy = dyn_cast<VectorType>(OrigTy)) { in deduceNestedTypeHelper()
581 return OrigTy; in deduceNestedTypeHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp786 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
790 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
801 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
805 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h901 bool IsFixed, bool IsRet, Type *OrigTy,
1104 bool IsRet, Type *OrigTy, const RISCVTargetLowering &TLI,
1110 bool IsRet, Type *OrigTy, const RISCVTargetLowering &TLI,
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.h266 bool IsFixed, bool IsReg, Type *OrigTy);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp2349 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
2350 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
2351 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2352 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
2358 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2359 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
2649 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
2650 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
2651 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
2652 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]
H A DCGDecl.cpp1098 llvm::Type *OrigTy = constant->getType(); in constWithPadding() local
1099 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding()
1101 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp6832 auto OrigTy = DT->getOriginalType(); in deduceOpenCLAddressSpace() local
6833 if (!OrigTy.hasAddressSpace() && OrigTy->isArrayType()) { in deduceOpenCLAddressSpace()
6836 OrigTy = Context.getAddrSpaceQualType(OrigTy, ImplAS); in deduceOpenCLAddressSpace()
6837 OrigTy = QualType(Context.getAsArrayType(OrigTy), 0); in deduceOpenCLAddressSpace()
6839 Type = Context.getDecayedType(OrigTy); in deduceOpenCLAddressSpace()
13029 QualType OrigTy, SourceLocation OrigLoc, in DiagNonTrivalCUnionDefaultInitializeVisitor()
13031 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor()
13059 if (auto *OrigRD = OrigTy->getAsRecordDecl()) in visitStruct()
13062 << 0 << OrigTy << IsUnion << UseContext; in visitStruct()
13082 QualType OrigTy; member
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp275 Type *OrigTy = V->getType(); in canEvaluateTruncated() local
290 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
320 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
338 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1014 Type *OrigTy = In->getType(); in promoteTo() local
1015 assert(!OrigTy->isVoidTy() && "Invalid instruction to promote"); in promoteTo()
1048 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp947 const DIType *OrigTy = Ty; in visitMapDefType() local
973 visitTypeEntry(OrigTy, TypeId, false, false); in visitMapDefType()

12