Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1183 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument
1184 if (OrigTy.getSizeInBits() == TargetTy.getSizeInBits()) in getLCMType()
1185 return OrigTy; in getLCMType()
1187 if (OrigTy.isVector() && TargetTy.isVector()) { in getLCMType()
1188 LLT OrigElt = OrigTy.getElementType(); in getLCMType()
1197 assert(((OrigTy.isScalableVector() && !TargetTy.isFixedVector()) || in getLCMType()
1198 (OrigTy.isFixedVector() && !TargetTy.isScalableVector())) && in getLCMType()
1202 int GCDMinElts = std::gcd(OrigTy.getElementCount().getKnownMinValue(), in getLCMType()
1205 ElementCount Mul = OrigTy.getElementCount().multiplyCoefficientBy( in getLCMType()
1208 OrigTy.getElementType()); in getLCMType()
[all …]
H A DCallLowering.cpp410 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
411 if (OrigTy.isPointer()) { in buildCopyFromRegs()
412 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs()
423 LLT OrigTy = MRI.getType(OrigRegs[0]); in buildCopyFromRegs() local
426 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
787 const LLT OrigTy = getLLTForType(*Args[i].Ty, DL); in handleAssignments() local
799 if (NumParts != 1 || NewLLT != OrigTy) { in handleAssignments()
822 if (!Handler.isIncomingArgumentHandler() && OrigTy != ValTy && in handleAssignments()
825 buildCopyToRegs(MIRBuilder, Args[i].Regs, Args[i].OrigRegs[0], OrigTy, in handleAssignments()
859 int FrameIdx = MFI.CreateStackObject(OrigTy.getScalarSizeInBits(), in handleAssignments()
[all …]
H A DLoadStoreOpt.cpp306 LLT OrigTy = MRI->getType(StoresToMerge[0]->getValueReg()); in mergeStores() local
315 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy); in mergeStores()
321 unsigned MaxSizeBits = NumPow2 * OrigTy.getSizeInBits().getFixedValue(); in mergeStores()
333 if (MergeSizeBits <= OrigTy.getSizeInBits()) in mergeStores()
336 unsigned NumStoresToMerge = MergeSizeBits / OrigTy.getSizeInBits(); in mergeStores()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVCallingConv.h24 bool IsFixed, bool IsRet, Type *OrigTy);
28 CCState &State, bool IsFixed, bool IsRet, Type *OrigTy);
32 CCState &State, bool IsFixed, bool IsRet, Type *OrigTy);
H A DRISCVCallingConv.cpp327 CCState &State, bool IsFixed, bool IsRet, Type *OrigTy) { in CC_RISCV() argument
469 DL.getTypeAllocSize(OrigTy) == TwoXLenInBytes && in CC_RISCV()
624 bool IsFixed, bool IsRet, Type *OrigTy) { in CC_RISCV_FastCC() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp141 int getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, const DataLayout &DL);
595 Type *OrigTy = getLoadStoreType(II.Inst); in instrumentLoadOrStore() local
603 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentLoadOrStore()
637 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore()
722 Type *OrigTy = LI->getType(); in instrumentAtomic() local
723 int Idx = getMemoryAccessFuncIndex(OrigTy, Addr, DL); in instrumentAtomic()
729 Value *Cast = IRB.CreateBitOrPointerCast(C, OrigTy); in instrumentAtomic()
807 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr, in getMemoryAccessFuncIndex() argument
809 assert(OrigTy->isSized()); in getMemoryAccessFuncIndex()
810 if (OrigTy->isScalableTy()) { in getMemoryAccessFuncIndex()
[all …]
H A DDataFlowSanitizer.cpp556 Constant *getZeroShadow(Type *OrigTy);
568 Type *getShadowTy(Type *OrigTy);
936 Constant *DataFlowSanitizer::getZeroShadow(Type *OrigTy) { in getZeroShadow() argument
937 if (!isa<ArrayType>(OrigTy) && !isa<StructType>(OrigTy)) in getZeroShadow()
939 Type *ShadowTy = getShadowTy(OrigTy); in getZeroShadow()
1105 Type *DataFlowSanitizer::getShadowTy(Type *OrigTy) { in getShadowTy() argument
1106 if (!OrigTy->isSized()) in getShadowTy()
1108 if (isa<IntegerType>(OrigTy)) in getShadowTy()
1110 if (isa<VectorType>(OrigTy)) in getShadowTy()
1112 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) in getShadowTy()
[all …]
H A DMemorySanitizer.cpp1651 Type *getShadowTy(Type *OrigTy) { in getShadowTy()
1652 if (!OrigTy->isSized()) { in getShadowTy()
1657 if (IntegerType *IT = dyn_cast<IntegerType>(OrigTy)) in getShadowTy()
1660 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) { in getShadowTy()
1665 if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) { in getShadowTy()
1669 if (StructType *ST = dyn_cast<StructType>(OrigTy)) { in getShadowTy()
1677 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy()
1970 Constant *getCleanShadow(Type *OrigTy) { in getCleanShadow()
1971 Type *ShadowTy = getShadowTy(OrigTy); in getCleanShadow()
/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()
1108 Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy in rewriteToNumericBoxedExpression()
1138 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1139 if (OrigTy->isArrayType()) in doRewriteToUTF8StringBoxedExpressionHelper()
1140 OrigTy = Ctx.getArrayDecayedType(OrigTy); in doRewriteToUTF8StringBoxedExpressionHelper()
1149 if (const PointerType *PT = OrigTy->getAs<PointerType>()) { in doRewriteToUTF8StringBoxedExpressionHelper()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DMips.cpp369 QualType OrigTy, AggValueSlot Slot) const { in EmitVAArg() argument
370 QualType Ty = OrigTy; in EmitVAArg()
401 llvm::Type *ValTy = CGF.ConvertType(OrigTy); in EmitVAArg()
405 llvm::Type *IntTy = (OrigTy->isIntegerType() ? ValTy : CGF.IntPtrTy); in EmitVAArg()
407 if (OrigTy->isPointerType()) in EmitVAArg()
/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/lib/CodeGen/
H A DReplaceWithVeclib.cpp183 Type *OrigTy = II->getArgOperand(VFParam.ParamPos)->getType(); in replaceWithCallToVeclib() local
184 if (OrigTy->isVectorTy() != (VFParam.ParamKind == VFParamKind::Vector)) { in replaceWithCallToVeclib()
187 << *OrigTy << "\n"); in replaceWithCallToVeclib()
H A DGlobalMergeFunctions.cpp193 FunctionType *OrigTy = MergedFunc->getFunctionType(); in createMergedFunction() local
195 SmallVector<Type *> ParamTypes(OrigTy->param_begin(), OrigTy->param_end()); in createMergedFunction()
198 FunctionType *FuncType = FunctionType::get(OrigTy->getReturnType(), in createMergedFunction()
H A DRegisterBankInfo.cpp478 LLT OrigTy = MRI.getType(OrigReg); in applyDefaultMapping() local
480 if (OrigTy != NewTy) { in applyDefaultMapping()
486 TypeSize::isKnownLE(OrigTy.getSizeInBits(), NewTy.getSizeInBits()) && in applyDefaultMapping()
490 << OrigTy); in applyDefaultMapping()
491 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
H A DAtomicExpandPass.cpp650 Type *OrigTy = NewVal->getType(); in createCmpXchgInstFun() local
653 assert(!OrigTy->isPointerTy()); in createCmpXchgInstFun()
654 bool NeedBitcast = OrigTy->isFloatingPointTy() || OrigTy->isVectorTy(); in createCmpXchgInstFun()
656 IntegerType *IntTy = Builder.getIntNTy(OrigTy->getPrimitiveSizeInBits()); in createCmpXchgInstFun()
671 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/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h376 LLVM_ABI LLVM_READNONE LLT getLCMType(LLT OrigTy, LLT TargetTy);
382 getCoverTy(LLT OrigTy, LLT TargetTy);
400 LLVM_ABI LLVM_READNONE LLT getGCDType(LLT OrigTy, LLT TargetTy);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp857 EVT OrigTy = TLI->getValueType(DL, Ty); in getArithmeticReductionCost() local
861 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getArithmeticReductionCost()
872 EVT OrigTy = TLI->getValueType(DL, Ty); in getMinMaxReductionCost() local
876 if (!ST->hasVOP3PInsts() || OrigTy.getScalarSizeInBits() != 16) in getMinMaxReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp726 User *U, Type *OrigTy, std::unordered_set<Value *> &Visited, in deduceNestedTypeHelper() argument
729 return OrigTy; in deduceNestedTypeHelper()
737 return OrigTy; in deduceNestedTypeHelper()
739 if (isa<StructType>(OrigTy)) { in deduceNestedTypeHelper()
764 } else if (auto *ArrTy = dyn_cast<ArrayType>(OrigTy)) { in deduceNestedTypeHelper()
782 } else if (auto *VecTy = dyn_cast<VectorType>(OrigTy)) { in deduceNestedTypeHelper()
802 return OrigTy; in deduceNestedTypeHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.h333 bool IsFixed, bool IsRet, Type *OrigTy);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp6952 auto OrigTy = DT->getOriginalType(); in deduceOpenCLAddressSpace() local
6953 if (!OrigTy.hasAddressSpace() && OrigTy->isArrayType()) { in deduceOpenCLAddressSpace()
6956 OrigTy = Context.getAddrSpaceQualType(OrigTy, ImplAS); in deduceOpenCLAddressSpace()
6957 OrigTy = QualType(Context.getAsArrayType(OrigTy), 0); in deduceOpenCLAddressSpace()
6959 Type = Context.getDecayedType(OrigTy); in deduceOpenCLAddressSpace()
13260 QualType OrigTy, SourceLocation OrigLoc, in DiagNonTrivalCUnionDefaultInitializeVisitor()
13262 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor()
13290 if (auto *OrigRD = OrigTy->getAsRecordDecl()) in visitStruct()
13293 << 0 << OrigTy << IsUnion << UseContext; in visitStruct()
13313 QualType OrigTy; member
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp2443 llvm::Type *OrigTy = CGM.getTypes().ConvertType(LV.getType()); in EmitLoadOfGlobalRegLValue() local
2444 llvm::Type *Ty = OrigTy; in EmitLoadOfGlobalRegLValue()
2445 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2446 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitLoadOfGlobalRegLValue()
2452 if (OrigTy->isPointerTy()) in EmitLoadOfGlobalRegLValue()
2453 Call = Builder.CreateIntToPtr(Call, OrigTy); in EmitLoadOfGlobalRegLValue()
2774 llvm::Type *OrigTy = CGM.getTypes().ConvertType(Dst.getType()); in EmitStoreThroughGlobalRegLValue() local
2775 llvm::Type *Ty = OrigTy; in EmitStoreThroughGlobalRegLValue()
2776 if (OrigTy->isPointerTy()) in EmitStoreThroughGlobalRegLValue()
2777 Ty = CGM.getTypes().getDataLayout().getIntPtrType(OrigTy); in EmitStoreThroughGlobalRegLValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp277 Type *OrigTy = V->getType(); in canEvaluateTruncated() local
292 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
322 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
348 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1004 Type *OrigTy = In->getType(); in promoteTo() local
1005 assert(!OrigTy->isVoidTy() && "Invalid instruction to promote"); in promoteTo()
1038 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DAMDGPU.cpp1090 llvm::Type *OrigTy = Val->getType(); in EmitAMDGPUBuiltinExpr() local
1149 return Builder.CreateBitCast(RMW, OrigTy); in EmitAMDGPUBuiltinExpr()

12