| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyAddMissingPrototypes.cpp | 104 FunctionType *NewType = nullptr; in runOnModule() local 109 if (!NewType) { in runOnModule() 111 NewType = DestType; in runOnModule() 112 LLVM_DEBUG(dbgs() << "found function type: " << *NewType << "\n"); in runOnModule() 113 } else if (NewType != DestType) { in runOnModule() 118 LLVM_DEBUG(dbgs() << " " << *NewType << "\n"); in runOnModule() 122 if (!NewType) { in runOnModule() 131 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule() 135 Function::Create(NewType, F.getLinkage(), F.getName() + ".fixed_sig"); in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILDataScalarization.cpp | 136 Type *NewType = equivalentArrayTypeFromVector(AllocatedType); in visitAllocaInst() local 138 Builder.CreateAlloca(NewType, nullptr, AI.getName() + ".scalarize"); in visitAllocaInst() 343 Type *NewType, LLVMContext &Ctx) { in transformInitializer() argument 346 return ConstantAggregateZero::get(NewType); in transformInitializer() 351 return UndefValue::get(NewType); in transformInitializer() 355 if (isa<VectorType>(OrigType) && isa<ArrayType>(NewType)) { in transformInitializer() 370 return ConstantArray::get(cast<ArrayType>(NewType), ArrayElements); in transformInitializer() 383 cast<ArrayType>(NewType)->getElementType(), Ctx); in transformInitializer() 387 return ConstantArray::get(cast<ArrayType>(NewType), NewArrayElements); in transformInitializer() 402 Type *NewType = equivalentArrayTypeFromVector(OrigType); in findAndReplaceVectors() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreLowerThreadLocal.cpp | 66 createLoweredInitializer(ArrayType *NewType, Constant *OriginalInitializer) { in createLoweredInitializer() argument 71 return ConstantArray::get(NewType, Elements); in createLoweredInitializer() 140 ArrayType *NewType = createLoweredType(GV->getValueType()); in lowerGlobal() local 143 NewInitializer = createLoweredInitializer(NewType, in lowerGlobal() 146 new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(), in lowerGlobal()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegacyLegalizerInfo.h | 108 LLT NewType; member 111 unsigned TypeIdx, const LLT NewType) in LegacyLegalizeActionStep() 112 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegacyLegalizeActionStep() 115 return std::tie(Action, TypeIdx, NewType) == 116 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
|
| H A D | LegalizerInfo.h | 148 LLT NewType; member 151 const LLT NewType) in LegalizeActionStep() 152 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep() 155 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep() 194 return std::tie(Action, TypeIdx, NewType) == 195 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | FormatTokenLexer.h | 63 bool tryMergeTokens(ArrayRef<tok::TokenKind> Kinds, TokenType NewType); 65 bool tryMergeTokens(size_t Count, TokenType NewType); 68 TokenType NewType);
|
| H A D | FormatTokenLexer.cpp | 625 TokenType NewType) { in tryMergeTokens() argument 634 return tryMergeTokens(Kinds.size(), NewType); in tryMergeTokens() 637 bool FormatTokenLexer::tryMergeTokens(size_t Count, TokenType NewType) { in tryMergeTokens() argument 655 First[0]->setType(NewType); in tryMergeTokens() 660 ArrayRef<ArrayRef<tok::TokenKind>> Kinds, TokenType NewType) { in tryMergeTokensAny() argument 661 return llvm::any_of(Kinds, [this, NewType](ArrayRef<tok::TokenKind> Kinds) { in tryMergeTokensAny() 662 return tryMergeTokens(Kinds, NewType); in tryMergeTokensAny()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateDeductionGuide.cpp | 448 QualType NewType = transformFunctionProtoType(TLB, FPTL, Params, Args, in transformConstructor() local 450 if (NewType.isNull()) in transformConstructor() 452 TypeSourceInfo *NewTInfo = TLB.getTypeSourceInfo(SemaRef.Context, NewType); in transformConstructor() 668 auto NewType = NewDI->getType(); in transformFunctionTypeParam() local 669 if (NewType->isArrayType() || NewType->isFunctionType()) in transformFunctionTypeParam() 670 NewType = SemaRef.Context.getDecayedType(NewType); in transformFunctionTypeParam() 674 OldParam->getLocation(), OldParam->getIdentifier(), NewType, NewDI, in transformFunctionTypeParam()
|
| H A D | TreeTransform.h | 6314 QualType NewType; in TransformFunctionTypeParams() local 6338 QualType NewType = getDerived().TransformType(Pattern); in TransformFunctionTypeParams() local 6339 if (NewType.isNull()) in TransformFunctionTypeParams() 6342 if (NewType->containsUnexpandedParameterPack()) { in TransformFunctionTypeParams() 6343 NewType = getSema().getASTContext().getPackExpansionType( in TransformFunctionTypeParams() 6344 NewType, std::nullopt); in TransformFunctionTypeParams() 6346 if (NewType.isNull()) in TransformFunctionTypeParams() 6352 OutParamTypes.push_back(NewType); in TransformFunctionTypeParams() 6365 QualType NewType = getDerived().TransformType(Pattern); in TransformFunctionTypeParams() local 6366 if (NewType.isNull()) in TransformFunctionTypeParams() [all …]
|
| H A D | SemaDecl.cpp | 2457 QualType NewType = New->getUnderlyingType(); in isIncompatibleTypedef() local 2459 if (NewType->isVariablyModifiedType()) { in isIncompatibleTypedef() 2463 << Kind << NewType; in isIncompatibleTypedef() 2470 if (OldType != NewType && in isIncompatibleTypedef() 2472 !NewType->isDependentType() && in isIncompatibleTypedef() 2473 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef() 2476 << Kind << NewType << OldType; in isIncompatibleTypedef() 3760 const FunctionType *NewType = cast<FunctionType>(NewQType); in MergeFunctionDecl() local 3762 FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); in MergeFunctionDecl() 3814 << NewType->getRegParmType() in MergeFunctionDecl() [all …]
|
| H A D | SemaOpenMP.cpp | 6973 QualType NewType) { in setPrototype() argument 6974 assert(NewType->isFunctionProtoType() && in setPrototype() 6981 FD->setType(NewType); in setPrototype() 7069 QualType NewType = getASTContext().mergeFunctionTypes( in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope() local 7072 if (NewType.isNull()) in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope() 7226 QualType NewType = getASTContext().mergeFunctionTypes( in ActOnOpenMPCall() local 7230 if (!NewType.isNull()) in ActOnOpenMPCall() 7461 QualType NewType = in checkOpenMPDeclareVariantFunction() local 7463 if (NewType.isNull()) { in checkOpenMPDeclareVariantFunction() 7470 if (NewType->isFunctionProtoType()) { in checkOpenMPDeclareVariantFunction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | Patterns.h | 298 void setType(PatternType NewType) { in setType() argument 299 assert((!Type || (Type == NewType)) && "Overwriting type!"); in setType() 300 Type = NewType; in setType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 1591 Type *NewType = DL.getSmallestLegalIntType(I->getContext(), MaxBitsNeeded); in tryNarrowMathIfNoOverflow() local 1592 if (!NewType) in tryNarrowMathIfNoOverflow() 1594 unsigned NewBit = NewType->getIntegerBitWidth(); in tryNarrowMathIfNoOverflow() 1597 NewType = I->getType()->getWithNewBitWidth(NewBit); in tryNarrowMathIfNoOverflow() 1604 TTI.getArithmeticInstrCost(Opc, NewType, TTI::TCK_RecipThroughput); in tryNarrowMathIfNoOverflow() 1612 NewType, OldType, in tryNarrowMathIfNoOverflow() 1617 TTI.getCastInstrCost(Instruction::ZExt, OldType, NewType, in tryNarrowMathIfNoOverflow() 1623 Value *Trunc0 = Builder.CreateTrunc(I->getOperand(0), NewType); in tryNarrowMathIfNoOverflow() 1624 Value *Trunc1 = Builder.CreateTrunc(I->getOperand(1), NewType); in tryNarrowMathIfNoOverflow()
|
| H A D | AMDGPULateCodeGenPrepare.cpp | 369 Type *NewType = calculateConvertType(Phi->getType()); in optimizeLiveType() local 370 NewPhi->addIncoming(ConstantInt::get(NewType, 0, false), in optimizeLiveType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.cpp | 308 SPIRVType *NewType = in createConstFP() local 330 add(CF, NewType); in createConstFP() 360 SPIRVType *NewType = in createConstInt() local 385 add(CI, NewType); in createConstInt() 409 SPIRVType *NewType = in buildConstantInt() local 431 add(CI, NewType); in buildConstantInt() 453 SPIRVType *NewType = in buildConstantFP() local 462 add(CF, NewType); in buildConstantFP()
|
| H A D | SPIRVBuiltins.cpp | 1917 SPIRVType *NewType = nullptr; in generateImageSizeQueryInst() local 1921 (NewType = GR->getSPIRVTypeForVReg(NewTypeReg)) != nullptr) in generateImageSizeQueryInst() 1929 if (NewType != nullptr) in generateImageSizeQueryInst() 1930 insertAssignInstr(Call->ReturnRegister, nullptr, NewType, GR, MIRBuilder, in generateImageSizeQueryInst() 2570 SPIRVType *NewType = in generateAsyncCopy() local 2574 Register TypeReg = GR->getSPIRVTypeID(NewType ? NewType : Call->ReturnType); in generateAsyncCopy() 2588 if (NewType != nullptr) in generateAsyncCopy() 2589 insertAssignInstr(Call->ReturnRegister, nullptr, NewType, GR, MIRBuilder, in generateAsyncCopy()
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 1783 TypeResult NewType in TryAnnotateName() local 1787 if (NewType.isUsable()) in TryAnnotateName() 1788 Ty = NewType.get(); in TryAnnotateName() 2042 TypeResult NewType in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local 2046 if (NewType.isUsable()) in TryAnnotateTypeOrScopeTokenAfterScopeSpec() 2047 Ty = NewType.get(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 1151 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD() local 1153 I.getModule(), Intrinsic::sadd_with_overflow, NewType); in processUGT_ADDCST_ADD() 1161 Value *TruncA = Builder.CreateTrunc(A, NewType, A->getName() + ".trunc"); in processUGT_ADDCST_ADD() 1162 Value *TruncB = Builder.CreateTrunc(B, NewType, B->getName() + ".trunc"); in processUGT_ADDCST_ADD() 3467 Type *NewType = Builder.getIntNTy(XType->getScalarSizeInBits()); in foldICmpBitCast() local 3469 NewType = VectorType::get(NewType, XVTy->getElementCount()); in foldICmpBitCast() 3470 Value *NewBitcast = Builder.CreateBitCast(X, NewType); in foldICmpBitCast() 3473 ConstantInt::getNullValue(NewType)); in foldICmpBitCast() 3476 ConstantInt::getAllOnesValue(NewType)); in foldICmpBitCast() 3523 Type *NewType = Builder.getIntNTy(VecTy->getPrimitiveSizeInBits()); in foldICmpBitCast() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 867 ArrayType *NewType = ArrayType::get(EltTy, NewSize); in linkAppendingVarProto() local 871 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(), in linkAppendingVarProto()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 7704 Type *NewType = TLI->shouldConvertSplatType(SVI); in optimizeShuffleVectorInst() local 7705 if (!NewType) in optimizeShuffleVectorInst() 7709 assert(!NewType->isVectorTy() && "Expected a scalar type!"); in optimizeShuffleVectorInst() 7710 assert(NewType->getScalarSizeInBits() == SVIVecType->getScalarSizeInBits() && in optimizeShuffleVectorInst() 7713 FixedVectorType::get(NewType, SVIVecType->getNumElements()); in optimizeShuffleVectorInst() 7719 cast<Instruction>(SVI->getOperand(0))->getOperand(1), NewType); in optimizeShuffleVectorInst() 7831 auto *NewType = Type::getIntNTy(Context, RegWidth); in optimizeSwitchType() local 7849 auto *ExtInst = CastInst::Create(ExtType, Cond, NewType); in optimizeSwitchType()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 115 llvm::Type *NewType = CGM.getTypes().ConvertType(DstTy); in EmitCXXDestructorCall() local 116 This = getTargetHooks().performAddrSpaceCast(*this, This, SrcAS, NewType); in EmitCXXDestructorCall()
|
| H A D | CGClass.cpp | 2144 llvm::Type *NewType = in EmitCXXConstructorCall() local 2147 getTargetHooks().performAddrSpaceCast(*this, ThisPtr, ThisAS, NewType); in EmitCXXConstructorCall()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTContext.cpp | 5289 auto *NewType = new (*this, alignof(TypedefType)) TypedefType( in getTypedefType() local 5291 Decl->TypeForDecl = NewType; in getTypedefType() 5292 Types.push_back(NewType); in getTypedefType() 5293 return QualType(NewType, 0); in getTypedefType() 5311 auto *NewType = new (Mem) TypedefType(Type::Typedef, Decl, Underlying, in getTypedefType() local 5313 TypedefTypes.InsertNode(NewType, InsertPos); in getTypedefType() 5314 Types.push_back(NewType); in getTypedefType() 5315 return QualType(NewType, 0); in getTypedefType() 5339 UsingType *NewType = new (Mem) UsingType(Found, Underlying, Canon); in getUsingType() local 5340 Types.push_back(NewType); in getUsingType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Record.cpp | 365 const RecTy *NewType = in resolveTypes() local 367 if (NewType) in resolveTypes() 368 return NewType->getListTy(); in resolveTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 859 Type *NewType = in CastGEPIndices() local 862 CastInst::getCastOpcode(Ops[i], true, NewType, true), Ops[i], NewType, in CastGEPIndices()
|