Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp560 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument
561 const unsigned OrigSize = OrigTy.getSizeInBits(); in getLCMType()
565 return OrigTy; in getLCMType()
567 if (OrigTy.isVector()) { in getLCMType()
568 const LLT OrigElt = OrigTy.getElementType(); in getLCMType()
574 int GCDElts = greatestCommonDivisor(OrigTy.getNumElements(), in getLCMType()
577 int Mul = OrigTy.getNumElements() * TargetTy.getNumElements(); in getLCMType()
578 return LLT::vector(Mul / GCDElts, OrigTy.getElementType()); in getLCMType()
582 return OrigTy; in getLCMType()
591 return LLT::vector(LCMSize / OrigSize, OrigTy); in getLCMType()
[all …]
DRegisterBankInfo.cpp476 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
478 if (OrigTy != NewTy) { in applyDefaultMapping()
483 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping()
487 << OrigTy); in applyDefaultMapping()
488 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
DCallLowering.cpp348 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local
410 auto Unmerge = MIRBuilder.buildUnmerge({OrigTy, OrigTy}, {NewReg}); in handleAssignments()
/external/clang/lib/StaticAnalyzer/Checkers/
DCastToStructChecker.cpp38 QualType OrigTy = Ctx.getCanonicalType(E->getType()); in checkPreStmt() local
41 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in checkPreStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DCastToStructChecker.cpp42 QualType OrigTy = Ctx.getCanonicalType(E->getType()); in VisitCastExpr() local
45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
/external/llvm-project/llvm/lib/CodeGen/
DTypePromotion.cpp109 IntegerType *OrigTy = nullptr; member in __anon80acd2140111::IRPromoter
134 Ctx(C), OrigTy(Ty), PromotedWidth(Width), Visited(visited), in IRPromoter()
137 assert(OrigTy->getPrimitiveSizeInBits().getFixedSize() < in IRPromoter()
637 Src->getType() == OrigTy) { in Cleanup()
679 << OrigTy->getBitWidth() << " to " << PromotedWidth << "-bits\n"); in Mutate()
812 Type *OrigTy = V->getType(); in TryToPromote() local
813 TypeSize = OrigTy->getPrimitiveSizeInBits().getFixedSize(); in TryToPromote()
929 IRPromoter Promoter(*Ctx, cast<IntegerType>(OrigTy), PromotedWidth, in TryToPromote()
DAtomicExpandPass.cpp470 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
473 bool NeedBitcast = OrigTy->isFloatingPointTy(); in createCmpXchgInstFun()
475 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
489 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp495 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentLoadOrStore() local
496 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
579 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentAtomic() local
580 if (Ty == OrigTy) { in instrumentAtomic()
586 Instruction *Cast = CastInst::Create(Instruction::IntToPtr, C, OrigTy); in instrumentAtomic()
666 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType(); in getMemoryAccessFuncIndex() local
667 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
668 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex()
DEfficiencySanitizer.cpp672 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentLoadOrStore() local
673 const uint32_t TypeSizeBytes = DL.getTypeStoreSizeInBits(OrigTy) / 8; in instrumentLoadOrStore()
678 Alignment = DL.getPrefTypeAlignment(OrigTy); in instrumentLoadOrStore()
812 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType(); in getMemoryAccessFuncIndex() local
813 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
815 uint32_t TypeSizeBytes = DL.getTypeStoreSizeInBits(OrigTy) / 8; in getMemoryAccessFuncIndex()
850 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentFastpathWorkingSet() local
851 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentFastpathWorkingSet()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp108 IntegerType *OrigTy = nullptr; member in __anon25c2b6080111::IRPromoter
133 Ctx(C), OrigTy(Ty), PromotedWidth(Width), Visited(visited), in IRPromoter()
136 assert(OrigTy->getPrimitiveSizeInBits() < ExtTy->getPrimitiveSizeInBits() in IRPromoter()
635 Src->getType() == OrigTy) { in Cleanup()
677 << OrigTy->getBitWidth() << " to " << PromotedWidth << "-bits\n"); in Mutate()
810 Type *OrigTy = V->getType(); in TryToPromote() local
811 TypeSize = OrigTy->getPrimitiveSizeInBits(); in TryToPromote()
927 IRPromoter Promoter(*Ctx, cast<IntegerType>(OrigTy), PromotedWidth, in TryToPromote()
DAtomicExpandPass.cpp502 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
505 bool NeedBitcast = OrigTy->isFloatingPointTy(); in createCmpXchgInstFun()
507 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
521 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp992 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression() local
994 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()
1091 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression()
1121 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1122 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper()
1123 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper()
1132 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
/external/llvm-project/clang/lib/Edit/
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()
1103 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression()
1133 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1134 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper()
1135 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper()
1144 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp348 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticInstrCost() local
349 if (!OrigTy.isSimple()) { in getArithmeticInstrCost()
473 EVT OrigTy = TLI->getValueType(DL, RetTy); in getIntrinsicInstrCost() local
474 if (!OrigTy.isSimple()) { in getIntrinsicInstrCost()
522 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
528 OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
538 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
544 OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
DAMDGPUCallLowering.cpp208 static LLT getMultipleType(LLT OrigTy, int Factor) { in getMultipleType() argument
209 if (OrigTy.isVector()) { in getMultipleType()
210 return LLT::vector(OrigTy.getNumElements() * Factor, in getMultipleType()
211 OrigTy.getElementType()); in getMultipleType()
214 return LLT::scalar(OrigTy.getSizeInBits() * Factor); in getMultipleType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp563 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentLoadOrStore() local
564 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
642 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentAtomic() local
644 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic()
724 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType(); in getMemoryAccessFuncIndex() local
725 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
726 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex()
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DUtils.h220 LLT getLCMType(LLT OrigTy, LLT TargetTy);
236 LLT getGCDType(LLT OrigTy, LLT TargetTy);
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp470 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticInstrCost() local
471 if (!OrigTy.isSimple()) { in getArithmeticInstrCost()
689 EVT OrigTy = TLI->getValueType(DL, RetTy); in getIntrinsicInstrCost() local
690 if (!OrigTy.isSimple()) { in getIntrinsicInstrCost()
777 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
783 OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
793 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
799 OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp661 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentLoadOrStore() local
662 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
754 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType(); in instrumentAtomic() local
756 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic()
836 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType(); in getMemoryAccessFuncIndex() local
837 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
838 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DRegisterBankInfo.cpp476 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
478 if (OrigTy != NewTy) { in applyDefaultMapping()
483 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping()
487 << OrigTy); in applyDefaultMapping()
488 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
DCallLowering.cpp334 const LLT OrigTy(OrigVT); in handleAssignments() local
341 auto Unmerge = MIRBuilder.buildUnmerge({OrigTy, OrigTy}, {NewReg}); in handleAssignments()
DLegalizerHelper.cpp41 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() argument
44 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown()
54 unsigned EltSize = OrigTy.getScalarSizeInBits(); in getNarrowTypeBreakDown()
175 static LLT getGCDType(LLT OrigTy, LLT TargetTy) { in getGCDType() argument
176 if (OrigTy.isVector() && TargetTy.isVector()) { in getGCDType()
177 assert(OrigTy.getElementType() == TargetTy.getElementType()); in getGCDType()
178 int GCD = greatestCommonDivisor(OrigTy.getNumElements(), in getGCDType()
180 return LLT::scalarOrVector(GCD, OrigTy.getElementType()); in getGCDType()
183 if (OrigTy.isVector() && !TargetTy.isVector()) { in getGCDType()
184 assert(OrigTy.getElementType() == TargetTy); in getGCDType()
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp115 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticInstrCost() local
116 if (!OrigTy.isSimple()) { in getArithmeticInstrCost()
/external/clang/lib/CodeGen/
DCGExpr.cpp1575 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
1576 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
1577 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
1578 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
1584 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
1585 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
1828 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
1829 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
1830 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
1831 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGExpr.cpp2045 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
2046 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
2047 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2048 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
2054 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2055 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
2321 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
2322 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
2323 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
2324 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]

123