/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyAddMissingPrototypes.cpp | 105 FunctionType *NewType = nullptr; in runOnModule() local 110 if (!NewType) { in runOnModule() 112 NewType = DestType; in runOnModule() 113 LLVM_DEBUG(dbgs() << "found function type: " << *NewType << "\n"); in runOnModule() 114 } else if (NewType != DestType) { in runOnModule() 119 LLVM_DEBUG(dbgs() << " " << *NewType << "\n"); in runOnModule() 123 if (!NewType) { in runOnModule() 132 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule() 136 Function::Create(NewType, F.getLinkage(), F.getName() + ".fixed_sig"); in runOnModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 69 createLoweredInitializer(ArrayType *NewType, Constant *OriginalInitializer) { in createLoweredInitializer() argument 74 return ConstantArray::get(NewType, Elements); in createLoweredInitializer() 143 ArrayType *NewType = createLoweredType(GV->getValueType()); in lowerGlobal() local 146 NewInitializer = createLoweredInitializer(NewType, in lowerGlobal() 149 new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(), in lowerGlobal()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegacyLegalizerInfo.h | 107 LLT NewType; member 110 unsigned TypeIdx, const LLT NewType) in LegacyLegalizeActionStep() 111 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegacyLegalizeActionStep() 114 return std::tie(Action, TypeIdx, NewType) == 115 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
|
H A D | LegalizerInfo.h | 149 LLT NewType; member 152 const LLT NewType) in LegalizeActionStep() 153 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep() 156 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep() 195 return std::tie(Action, TypeIdx, NewType) == 196 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | FormatTokenLexer.h | 62 bool tryMergeTokens(ArrayRef<tok::TokenKind> Kinds, TokenType NewType); 64 bool tryMergeTokens(size_t Count, TokenType NewType); 67 TokenType NewType);
|
H A D | FormatTokenLexer.cpp | 559 TokenType NewType) { in tryMergeTokens() argument 569 return tryMergeTokens(Kinds.size(), NewType); in tryMergeTokens() 572 bool FormatTokenLexer::tryMergeTokens(size_t Count, TokenType NewType) { in tryMergeTokens() argument 590 First[0]->setType(NewType); in tryMergeTokens() 595 ArrayRef<ArrayRef<tok::TokenKind>> Kinds, TokenType NewType) { in tryMergeTokensAny() argument 596 return llvm::any_of(Kinds, [this, NewType](ArrayRef<tok::TokenKind> Kinds) { in tryMergeTokensAny() 597 return tryMergeTokens(Kinds, NewType); in tryMergeTokensAny()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateDeductionGuide.cpp | 426 QualType NewType = transformFunctionProtoType(TLB, FPTL, Params, Args, in transformConstructor() local 428 if (NewType.isNull()) in transformConstructor() 430 TypeSourceInfo *NewTInfo = TLB.getTypeSourceInfo(SemaRef.Context, NewType); in transformConstructor() 622 auto NewType = NewDI->getType(); in transformFunctionTypeParam() local 623 if (NewType->isArrayType() || NewType->isFunctionType()) in transformFunctionTypeParam() 624 NewType = SemaRef.Context.getDecayedType(NewType); in transformFunctionTypeParam() 628 OldParam->getLocation(), OldParam->getIdentifier(), NewType, NewDI, in transformFunctionTypeParam()
|
H A D | TreeTransform.h | 6087 QualType NewType; in TransformFunctionTypeParams() local 6111 QualType NewType = getDerived().TransformType(Pattern); in TransformFunctionTypeParams() local 6112 if (NewType.isNull()) in TransformFunctionTypeParams() 6115 if (NewType->containsUnexpandedParameterPack()) { in TransformFunctionTypeParams() 6116 NewType = getSema().getASTContext().getPackExpansionType( in TransformFunctionTypeParams() 6117 NewType, std::nullopt); in TransformFunctionTypeParams() 6119 if (NewType.isNull()) in TransformFunctionTypeParams() 6125 OutParamTypes.push_back(NewType); in TransformFunctionTypeParams() 6138 QualType NewType = getDerived().TransformType(Pattern); in TransformFunctionTypeParams() local 6139 if (NewType.isNull()) in TransformFunctionTypeParams() [all …]
|
H A D | SemaDecl.cpp | 2439 QualType NewType = New->getUnderlyingType(); in isIncompatibleTypedef() local 2441 if (NewType->isVariablyModifiedType()) { in isIncompatibleTypedef() 2445 << Kind << NewType; in isIncompatibleTypedef() 2452 if (OldType != NewType && in isIncompatibleTypedef() 2454 !NewType->isDependentType() && in isIncompatibleTypedef() 2455 !Context.hasSameType(OldType, NewType)) { in isIncompatibleTypedef() 2458 << Kind << NewType << OldType; in isIncompatibleTypedef() 3691 const FunctionType *NewType = cast<FunctionType>(NewQType); in MergeFunctionDecl() local 3693 FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); in MergeFunctionDecl() 3745 << NewType->getRegParmType() in MergeFunctionDecl() [all …]
|
H A D | SemaOpenMP.cpp | 7025 QualType NewType) { in setPrototype() argument 7026 assert(NewType->isFunctionProtoType() && in setPrototype() 7033 FD->setType(NewType); in setPrototype() 7121 QualType NewType = getASTContext().mergeFunctionTypes( in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope() local 7124 if (NewType.isNull()) in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope() 7277 QualType NewType = getASTContext().mergeFunctionTypes( in ActOnOpenMPCall() local 7281 if (!NewType.isNull()) in ActOnOpenMPCall() 7512 QualType NewType = in checkOpenMPDeclareVariantFunction() local 7514 if (NewType.isNull()) { in checkOpenMPDeclareVariantFunction() 7521 if (NewType->isFunctionProtoType()) { in checkOpenMPDeclareVariantFunction() [all …]
|
H A D | SemaOverload.cpp | 1324 const auto *NewType = cast<FunctionProtoType>(NewQType); in IsOverloadOrOverrideImpl() local 1329 if (OldQType != NewQType && OldType->isVariadic() != NewType->isVariadic()) in IsOverloadOrOverrideImpl() 1464 NewType->getNumParams() - NewParamsOffset || in IsOverloadOrOverrideImpl() 1468 {NewType->param_type_begin() + NewParamsOffset, in IsOverloadOrOverrideImpl() 1469 NewType->param_type_end()}, in IsOverloadOrOverrideImpl() 3267 QualType NewType = in FunctionParamTypesAreEqual() local 3270 if (!Context.hasSameType(OldType, NewType)) { in FunctionParamTypesAreEqual() 3280 const FunctionProtoType *NewType, in FunctionParamTypesAreEqual() argument 3283 NewType->param_types(), ArgPos, Reversed); in FunctionParamTypesAreEqual()
|
H A D | SemaDeclCXX.cpp | 1600 QualType NewType = New->getType(); in MergeVarDeclExceptionSpecs() local 1605 if (const ReferenceType *R = NewType->getAs<ReferenceType>()) { in MergeVarDeclExceptionSpecs() 1606 NewType = R->getPointeeType(); in MergeVarDeclExceptionSpecs() 1608 } else if (const PointerType *P = NewType->getAs<PointerType>()) { in MergeVarDeclExceptionSpecs() 1609 NewType = P->getPointeeType(); in MergeVarDeclExceptionSpecs() 1611 } else if (const MemberPointerType *M = NewType->getAs<MemberPointerType>()) { in MergeVarDeclExceptionSpecs() 1612 NewType = M->getPointeeType(); in MergeVarDeclExceptionSpecs() 1616 if (!NewType->isFunctionProtoType()) in MergeVarDeclExceptionSpecs() 1624 NewType->getAs<FunctionProtoType>(), New->getLocation())) { in MergeVarDeclExceptionSpecs()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | Patterns.h | 276 void setType(PatternType NewType) { in setType() argument 277 assert((!Type || (Type == NewType)) && "Overwriting type!"); in setType() 278 Type = NewType; in setType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULateCodeGenPrepare.cpp | 360 Type *NewType = calculateConvertType(Phi->getType()); in optimizeLiveType() local 361 NewPhi->addIncoming(ConstantInt::get(NewType, 0, false), in optimizeLiveType()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | Parser.cpp | 1875 TypeResult NewType in TryAnnotateName() local 1879 if (NewType.isUsable()) in TryAnnotateName() 1880 Ty = NewType.get(); in TryAnnotateName() 2152 TypeResult NewType in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local 2156 if (NewType.isUsable()) in TryAnnotateTypeOrScopeTokenAfterScopeSpec() 2157 Ty = NewType.get(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVBuiltins.cpp | 1616 SPIRVType *NewType = nullptr; in generateImageSizeQueryInst() local 1620 (NewType = GR->getSPIRVTypeForVReg(NewTypeReg)) != nullptr) in generateImageSizeQueryInst() 1628 if (NewType != nullptr) in generateImageSizeQueryInst() 1629 insertAssignInstr(Call->ReturnRegister, nullptr, NewType, GR, MIRBuilder, in generateImageSizeQueryInst() 2211 SPIRVType *NewType = in generateAsyncCopy() local 2215 Register TypeReg = GR->getSPIRVTypeID(NewType ? NewType : Call->ReturnType); in generateAsyncCopy() 2229 if (NewType != nullptr) in generateAsyncCopy() 2230 insertAssignInstr(Call->ReturnRegister, nullptr, NewType, GR, MIRBuilder, in generateAsyncCopy()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 1123 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD() local 1125 I.getModule(), Intrinsic::sadd_with_overflow, NewType); in processUGT_ADDCST_ADD() 1133 Value *TruncA = Builder.CreateTrunc(A, NewType, A->getName() + ".trunc"); in processUGT_ADDCST_ADD() 1134 Value *TruncB = Builder.CreateTrunc(B, NewType, B->getName() + ".trunc"); in processUGT_ADDCST_ADD() 3320 Type *NewType = Builder.getIntNTy(XType->getScalarSizeInBits()); in foldICmpBitCast() local 3322 NewType = VectorType::get(NewType, XVTy->getElementCount()); in foldICmpBitCast() 3323 Value *NewBitcast = Builder.CreateBitCast(X, NewType); in foldICmpBitCast() 3326 ConstantInt::getNullValue(NewType)); in foldICmpBitCast() 3329 ConstantInt::getAllOnesValue(NewType)); in foldICmpBitCast() 3376 Type *NewType = Builder.getIntNTy(VecTy->getPrimitiveSizeInBits()); in foldICmpBitCast() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 973 ArrayType *NewType = ArrayType::get(EltTy, NewSize); in linkAppendingVarProto() local 977 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(), in linkAppendingVarProto()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 7309 Type *NewType = TLI->shouldConvertSplatType(SVI); in optimizeShuffleVectorInst() local 7310 if (!NewType) in optimizeShuffleVectorInst() 7314 assert(!NewType->isVectorTy() && "Expected a scalar type!"); in optimizeShuffleVectorInst() 7315 assert(NewType->getScalarSizeInBits() == SVIVecType->getScalarSizeInBits() && in optimizeShuffleVectorInst() 7318 FixedVectorType::get(NewType, SVIVecType->getNumElements()); in optimizeShuffleVectorInst() 7324 cast<Instruction>(SVI->getOperand(0))->getOperand(1), NewType); in optimizeShuffleVectorInst() 7439 auto *NewType = Type::getIntNTy(Context, RegWidth); in optimizeSwitchType() local 7457 auto *ExtInst = CastInst::Create(ExtType, Cond, NewType); in optimizeSwitchType()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTContext.cpp | 5063 auto *NewType = new (*this, alignof(TypedefType)) TypedefType( in getTypedefType() local 5065 Decl->TypeForDecl = NewType; in getTypedefType() 5066 Types.push_back(NewType); in getTypedefType() 5067 return QualType(NewType, 0); in getTypedefType() 5085 auto *NewType = new (Mem) TypedefType(Type::Typedef, Decl, Underlying, in getTypedefType() local 5087 TypedefTypes.InsertNode(NewType, InsertPos); in getTypedefType() 5088 Types.push_back(NewType); in getTypedefType() 5089 return QualType(NewType, 0); in getTypedefType() 5113 UsingType *NewType = new (Mem) UsingType(Found, Underlying, Canon); in getUsingType() local 5114 Types.push_back(NewType); in getUsingType() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprCXX.cpp | 114 llvm::Type *NewType = CGM.getTypes().ConvertType(DstTy); in EmitCXXDestructorCall() local 116 NewType); in EmitCXXDestructorCall()
|
H A D | CGClass.cpp | 2135 llvm::Type *NewType = in EmitCXXConstructorCall() local 2138 SlotAS, NewType); in EmitCXXConstructorCall()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 844 Type *NewType = in CastGEPIndices() local 847 CastInst::getCastOpcode(Ops[i], true, NewType, true), Ops[i], NewType, in CastGEPIndices()
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Record.cpp | 330 RecTy* NewType = resolveTypes(ListTy1->getElementType(), in resolveTypes() local 332 if (NewType) in resolveTypes() 333 return NewType->getListTy(); in resolveTypes()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerHelper.cpp | 136 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 139 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 142 return bitcast(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 145 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 148 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 151 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
|