Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp759 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument
760 const unsigned OrigSize = OrigTy.getSizeInBits(); in getLCMType()
764 return OrigTy; in getLCMType()
766 if (OrigTy.isVector()) { in getLCMType()
767 const LLT OrigElt = OrigTy.getElementType(); in getLCMType()
773 int GCDElts = greatestCommonDivisor(OrigTy.getNumElements(), in getLCMType()
776 int Mul = OrigTy.getNumElements() * TargetTy.getNumElements(); in getLCMType()
777 return LLT::vector(Mul / GCDElts, OrigTy.getElementType()); in getLCMType()
781 return OrigTy; in getLCMType()
790 return LLT::vector(LCMSize / OrigSize, OrigTy); in getLCMType()
[all …]
H A DRegisterBankInfo.cpp475 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
477 if (OrigTy != NewTy) { in applyDefaultMapping()
482 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping()
486 << OrigTy); in applyDefaultMapping()
487 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
H A DCallLowering.cpp356 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
359 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
641 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local
651 if (NumParts != 1 || NewLLT != OrigTy) { in handleAssignments()
667 if (!Handler.isIncomingArgumentHandler() && OrigTy != ValTy) { in handleAssignments()
669 buildCopyToRegs(MIRBuilder, Args[i].Regs, Args[i].OrigRegs[0], OrigTy, in handleAssignments()
755 buildCopyFromRegs(MIRBuilder, Args[i].OrigRegs, Args[i].Regs, OrigTy, in handleAssignments()
H A DLegalizerHelper.cpp44 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() argument
47 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown()
57 unsigned EltSize = OrigTy.getScalarSizeInBits(); in getNarrowTypeBreakDown()
1460 LLT OrigTy = MRI.getType(OrigReg); in widenWithUnmerge() local
1461 LLT LCMTy = getLCMType(WideTy, OrigTy); in widenWithUnmerge()
1464 const int NumUnmergeParts = LCMTy.getSizeInBits() / OrigTy.getSizeInBits(); in widenWithUnmerge()
1486 UnmergeResults[I] = MRI.createGenericVirtualRegister(OrigTy); in widenWithUnmerge()
1774 LLT OrigTy = MRI.getType(MI.getOperand(0).getReg()); in widenScalarAddSubOverflow() local
1775 auto TruncOp = MIRBuilder.buildTrunc(OrigTy, NewOp); in widenScalarAddSubOverflow()
6786 LLT OrigTy = MRI.getType(Result); in lowerSMULH_UMULH() local
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTypePromotion.cpp109 IntegerType *OrigTy = nullptr; member in __anon7086da680111::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()
H A DAtomicExpandPass.cpp472 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
475 bool NeedBitcast = OrigTy->isFloatingPointTy(); in createCmpXchgInstFun()
477 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
491 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
H A DCodeGenPrepare.cpp2839 Type *OrigTy; member in __anon7f6d13e30a11::TypePromotionTransaction::TypeMutator
2844 : TypePromotionAction(Inst), OrigTy(Inst->getType()) { in TypeMutator()
2852 LLVM_DEBUG(dbgs() << "Undo: MutateType: " << *Inst << " with " << *OrigTy in undo()
2854 Inst->mutateType(OrigTy); in undo()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A 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()
H A DDataFlowSanitizer.cpp536 Constant *getZeroShadow(Type *OrigTy);
551 Type *getShadowTy(Type *OrigTy);
938 Constant *DataFlowSanitizer::getZeroShadow(Type *OrigTy) { in getZeroShadow() argument
942 if (!isa<ArrayType>(OrigTy) && !isa<StructType>(OrigTy)) in getZeroShadow()
944 Type *ShadowTy = getShadowTy(OrigTy); in getZeroShadow()
1055 Type *DataFlowSanitizer::getShadowTy(Type *OrigTy) { in getShadowTy() argument
1059 if (!OrigTy->isSized()) in getShadowTy()
1061 if (isa<IntegerType>(OrigTy)) in getShadowTy()
1063 if (isa<VectorType>(OrigTy)) in getShadowTy()
1065 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) in getShadowTy()
[all …]
H A DMemorySanitizer.cpp1358 Type *getShadowTy(Type *OrigTy) { in getShadowTy()
1359 if (!OrigTy->isSized()) { in getShadowTy()
1364 if (IntegerType *IT = dyn_cast<IntegerType>(OrigTy)) in getShadowTy()
1367 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) { in getShadowTy()
1372 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) { in getShadowTy()
1376 if (StructType *ST = dyn_cast<StructType>(OrigTy)) { in getShadowTy()
1384 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy()
1599 Constant *getCleanShadow(Type *OrigTy) { in getCleanShadow()
1600 Type *ShadowTy = getShadowTy(OrigTy); in getCleanShadow()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp519 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticInstrCost() local
520 if (!OrigTy.isSimple()) { in getArithmeticInstrCost()
742 EVT OrigTy = TLI->getValueType(DL, RetTy); in getIntrinsicInstrCost() local
743 if (!OrigTy.isSimple()) { in getIntrinsicInstrCost()
851 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
857 OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
868 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
874 OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h284 LLT getLCMType(LLT OrigTy, LLT TargetTy);
300 LLT getGCDType(LLT OrigTy, LLT TargetTy);
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExpr.cpp2043 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
2044 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
2045 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2046 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
2052 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2053 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
2317 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
2318 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
2319 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
2320 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]
H A DCGDecl.cpp1063 llvm::Type *OrigTy = constant->getType(); in constWithPadding() local
1064 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding()
1066 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding()
H A DTargetInfo.cpp8031 QualType OrigTy) const { in EmitVAArg()
8032 QualType Ty = OrigTy; in EmitVAArg()
8064 Address Temp = CGF.CreateMemTemp(OrigTy, "vaarg.promotion-temp"); in EmitVAArg()
8068 llvm::Type *IntTy = (OrigTy->isIntegerType() ? Temp.getElementType() in EmitVAArg()
8071 if (OrigTy->isPointerType()) in EmitVAArg()
H A DMicrosoftCXXABI.cpp2243 auto OrigTy = Ret.getType(); in performReturnAdjustment() local
2261 return CGF.Builder.CreateBitCast(V, OrigTy); in performReturnAdjustment()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDecl.cpp6370 auto OrigTy = DT->getOriginalType(); in deduceOpenCLAddressSpace() local
6371 if (!OrigTy.hasAddressSpace() && OrigTy->isArrayType()) { in deduceOpenCLAddressSpace()
6374 OrigTy = Context.getAddrSpaceQualType(OrigTy, ImplAS); in deduceOpenCLAddressSpace()
6375 OrigTy = QualType(Context.getAsArrayType(OrigTy), 0); in deduceOpenCLAddressSpace()
6377 Type = Context.getDecayedType(OrigTy); in deduceOpenCLAddressSpace()
11867 QualType OrigTy, SourceLocation OrigLoc, in DiagNonTrivalCUnionDefaultInitializeVisitor()
11869 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor()
11897 if (auto *OrigRD = OrigTy->getAsRecordDecl()) in visitStruct()
11900 << 0 << OrigTy << IsUnion << UseContext; in visitStruct()
11920 QualType OrigTy; member
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp371 Type *OrigTy = V->getType(); in canEvaluateTruncated() local
386 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
414 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
432 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBTFDebug.cpp694 const DIType *OrigTy = Ty; in visitMapDefType() local
720 visitTypeEntry(OrigTy, TypeId, false, false); in visitMapDefType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1022 Type *OrigTy = In->getType(); in promoteTo() local
1023 assert(!OrigTy->isVoidTy() && "Invalid instruction to promote"); in promoteTo()
1056 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
H A DHexagonISelLowering.cpp1063 EVT OrigTy = cast<VTSDNode>(Op.getOperand(1))->getVT(); in LowerSETCC() local
1065 unsigned OrigBW = OrigTy.getSizeInBits(); in LowerSETCC()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp981 EVT OrigTy = cast<VTSDNode>(Node->getOperand(1))->getVT(); in ExpandSEXTINREG() local
984 unsigned OrigBW = OrigTy.getScalarSizeInBits(); in ExpandSEXTINREG()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp6676 bool IsRet, Type *OrigTy, const RISCVTargetLowering &TLI, in CC_RISCV() argument
6738 DL.getTypeAllocSize(OrigTy) == TwoXLenInBytes) { in CC_RISCV()
6945 Type *OrigTy = CLI ? CLI->getArgs()[Outs[i].OrigArgIndex].Ty : nullptr; in analyzeOutputArgs() local
6949 ArgFlags, CCInfo, Outs[i].IsFixed, IsRet, OrigTy, *this, in analyzeOutputArgs()

12