Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp893 return OrigTy; in getLCMType()
895 if (OrigTy.isVector()) { in getLCMType()
911 return OrigTy; in getLCMType()
927 return OrigTy; in getLCMType()
935 if (!OrigTy.isVector() || !TargetTy.isVector() || OrigTy == TargetTy || in getCoverTy()
937 return getLCMType(OrigTy, TargetTy); in getCoverTy()
942 return OrigTy; in getCoverTy()
954 return OrigTy; in getGCDType()
956 if (OrigTy.isVector()) { in getGCDType()
957 LLT OrigElt = OrigTy.getElementType(); in getGCDType()
[all …]
H A DLoadStoreOpt.cpp293 LLT OrigTy = MRI->getType(StoresToMerge[0]->getValueReg()); in mergeStores() local
302 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy); in mergeStores()
309 unsigned MaxSizeBits = NumPow2 * OrigTy.getSizeInBits().getFixedSize(); in mergeStores()
321 if (MergeSizeBits <= OrigTy.getSizeInBits()) in mergeStores()
324 unsigned NumStoresToMerge = MergeSizeBits / OrigTy.getSizeInBits(); in mergeStores()
H A DCallLowering.cpp359 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
360 if (OrigTy.isPointer()) { in buildCopyFromRegs()
361 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs()
372 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
375 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
675 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local
685 if (NumParts != 1 || NewLLT != OrigTy) { in handleAssignments()
701 if (!Handler.isIncomingArgumentHandler() && OrigTy != ValTy) { in handleAssignments()
703 buildCopyToRegs(MIRBuilder, Args[i].Regs, Args[i].OrigRegs[0], OrigTy, in handleAssignments()
796 buildCopyFromRegs(MIRBuilder, Args[i].OrigRegs, Args[i].Regs, OrigTy, in handleAssignments()
H A DLegalizerHelper.cpp51 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() argument
54 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown()
64 unsigned EltSize = OrigTy.getScalarSizeInBits(); in getNarrowTypeBreakDown()
1908 LLT OrigTy = MRI.getType(MI.getOperand(0).getReg()); in widenScalarAddSubOverflow() local
1909 auto TruncOp = MIRBuilder.buildTrunc(OrigTy, NewOp); in widenScalarAddSubOverflow()
7202 LLT OrigTy = MRI.getType(Result); in lowerSMULH_UMULH() local
7203 auto SizeInBits = OrigTy.getScalarSizeInBits(); in lowerSMULH_UMULH()
7204 LLT WideTy = OrigTy.changeElementSize(SizeInBits * 2); in lowerSMULH_UMULH()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp144 int getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, const DataLayout &DL);
603 Type *OrigTy = getLoadStoreType(II.Inst); in instrumentLoadOrStore() local
611 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentLoadOrStore()
648 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
731 Type *OrigTy = LI->getType(); in instrumentAtomic() local
732 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentAtomic()
742 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic()
821 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, in getMemoryAccessFuncIndex() argument
823 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
825 cast<PointerType>(Addr->getType())->isOpaqueOrPointeeTypeMatches(OrigTy)); in getMemoryAccessFuncIndex()
[all …]
H A DDataFlowSanitizer.cpp521 Constant *getZeroShadow(Type *OrigTy);
533 Type *getShadowTy(Type *OrigTy);
866 Constant *DataFlowSanitizer::getZeroShadow(Type *OrigTy) { in getZeroShadow() argument
867 if (!isa<ArrayType>(OrigTy) && !isa<StructType>(OrigTy)) in getZeroShadow()
869 Type *ShadowTy = getShadowTy(OrigTy); in getZeroShadow()
994 Type *DataFlowSanitizer::getShadowTy(Type *OrigTy) { in getShadowTy() argument
995 if (!OrigTy->isSized()) in getShadowTy()
997 if (isa<IntegerType>(OrigTy)) in getShadowTy()
999 if (isa<VectorType>(OrigTy)) in getShadowTy()
1001 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) in getShadowTy()
[all …]
H A DMemorySanitizer.cpp1345 Type *getShadowTy(Type *OrigTy) { in getShadowTy()
1346 if (!OrigTy->isSized()) { in getShadowTy()
1351 if (IntegerType *IT = dyn_cast<IntegerType>(OrigTy)) in getShadowTy()
1354 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) { in getShadowTy()
1359 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) { in getShadowTy()
1363 if (StructType *ST = dyn_cast<StructType>(OrigTy)) { in getShadowTy()
1371 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy()
1586 Constant *getCleanShadow(Type *OrigTy) { in getCleanShadow()
1587 Type *ShadowTy = getShadowTy(OrigTy); in getCleanShadow()
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp994 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression() local
996 uint64_t OrigTySize = Ctx.getTypeSize(OrigTy); in rewriteToNumericBoxedExpression()
1009 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
1016 if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg)) in rewriteToNumericBoxedExpression()
1018 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression()
1104 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression()
1134 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1135 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper()
1136 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper()
1145 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h323 LLT getLCMType(LLT OrigTy, LLT TargetTy);
328 LLT getCoverTy(LLT OrigTy, LLT TargetTy);
344 LLT getGCDType(LLT OrigTy, LLT TargetTy);
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp472 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
474 if (OrigTy != NewTy) { in applyDefaultMapping()
479 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping()
483 << OrigTy); in applyDefaultMapping()
484 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
H A DTypePromotion.cpp760 Type *OrigTy = V->getType(); in TryToPromote() local
761 TypeSize = OrigTy->getPrimitiveSizeInBits().getFixedSize(); in TryToPromote()
H A DAtomicExpandPass.cpp536 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
539 assert(!OrigTy->isPointerTy()); in createCmpXchgInstFun()
540 bool NeedBitcast = OrigTy->isFloatingPointTy(); in createCmpXchgInstFun()
542 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
556 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
H A DCodeGenPrepare.cpp2862 Type *OrigTy; member in __anon78e22a880a11::TypePromotionTransaction::TypeMutator
2867 : TypePromotionAction(Inst), OrigTy(Inst->getType()) { in TypeMutator()
2875 LLVM_DEBUG(dbgs() << "Undo: MutateType: " << *Inst << " with " << *OrigTy in undo()
2877 Inst->mutateType(OrigTy); in undo()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp765 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
769 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
780 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
784 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp2111 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
2112 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
2113 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2114 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
2120 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2121 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
2402 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
2403 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
2404 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
2405 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]
H A DCGDecl.cpp1079 llvm::Type *OrigTy = constant->getType(); in constWithPadding() local
1080 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding()
1082 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding()
H A DTargetInfo.cpp8198 QualType OrigTy) const { in EmitVAArg()
8199 QualType Ty = OrigTy; in EmitVAArg()
8231 Address Temp = CGF.CreateMemTemp(OrigTy, "vaarg.promotion-temp"); in EmitVAArg()
8235 llvm::Type *IntTy = (OrigTy->isIntegerType() ? Temp.getElementType() in EmitVAArg()
8238 if (OrigTy->isPointerType()) in EmitVAArg()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp6811 auto OrigTy = DT->getOriginalType(); in deduceOpenCLAddressSpace() local
6812 if (!OrigTy.hasAddressSpace() && OrigTy->isArrayType()) { in deduceOpenCLAddressSpace()
6815 OrigTy = Context.getAddrSpaceQualType(OrigTy, ImplAS); in deduceOpenCLAddressSpace()
6816 OrigTy = QualType(Context.getAsArrayType(OrigTy), 0); in deduceOpenCLAddressSpace()
6818 Type = Context.getDecayedType(OrigTy); in deduceOpenCLAddressSpace()
12425 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor()
12476 QualType OrigTy; member
12490 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDestructedTypeVisitor()
12543 QualType OrigTy; member
12556 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionCopyVisitor()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h611 bool IsFixed, bool IsRet, Type *OrigTy,
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp391 Type *OrigTy = V->getType(); in canEvaluateTruncated() local
406 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
434 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
452 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1020 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()
H A DHexagonISelLowering.cpp1061 EVT OrigTy = cast<VTSDNode>(Op.getOperand(1))->getVT(); in LowerSETCC() local
1063 unsigned OrigBW = OrigTy.getSizeInBits(); in LowerSETCC()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.cpp907 const DIType *OrigTy = Ty; in visitMapDefType() local
933 visitTypeEntry(OrigTy, TypeId, false, false); in visitMapDefType()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp985 EVT OrigTy = cast<VTSDNode>(Node->getOperand(1))->getVT(); in ExpandSEXTINREG() local
988 unsigned OrigBW = OrigTy.getScalarSizeInBits(); in ExpandSEXTINREG()

12