Home
last modified time | relevance | path

Searched refs:NewAttr (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaHLSL.cpp346 HLSLNumThreadsAttr *NewAttr = mergeNumThreadsAttr(D, AL, X, Y, Z); in handleNumThreadsAttr() local
347 if (NewAttr) in handleNumThreadsAttr()
348 D->addAttr(NewAttr); in handleNumThreadsAttr()
435 HLSLShaderAttr *NewAttr = mergeShaderAttr(D, AL, ShaderType); in handleShaderAttr() local
436 if (NewAttr) in handleShaderAttr()
437 D->addAttr(NewAttr); in handleShaderAttr()
527 HLSLResourceBindingAttr *NewAttr = in handleResourceBindingAttr() local
529 if (NewAttr) in handleResourceBindingAttr()
530 D->addAttr(NewAttr); in handleResourceBindingAttr()
534 HLSLParamModifierAttr *NewAttr = mergeParamModifierAttr( in handleParamModifierAttr() local
[all …]
H A DSemaDeclAttr.cpp2320 AvailabilityAttr *NewAttr = S.mergeAvailabilityAttr( in handleAvailabilityAttr() local
2324 if (NewAttr) in handleAvailabilityAttr()
2325 D->addAttr(NewAttr); in handleAvailabilityAttr()
2376 AvailabilityAttr *NewAttr = S.mergeAvailabilityAttr( in handleAvailabilityAttr() local
2381 if (NewAttr) in handleAvailabilityAttr()
2382 D->addAttr(NewAttr); in handleAvailabilityAttr()
2418 AvailabilityAttr *NewAttr = S.mergeAvailabilityAttr( in handleAvailabilityAttr() local
2423 if (NewAttr) in handleAvailabilityAttr()
2424 D->addAttr(NewAttr); in handleAvailabilityAttr()
2449 AvailabilityAttr *NewAttr = S.mergeAvailabilityAttr( in handleAvailabilityAttr() local
[all …]
H A DSemaDecl.cpp2797 InheritableAttr *NewAttr = nullptr; in mergeDeclAttribute() local
2799 NewAttr = S.mergeAvailabilityAttr( in mergeDeclAttribute()
2805 NewAttr = S.mergeVisibilityAttr(D, *VA, VA->getVisibility()); in mergeDeclAttribute()
2807 NewAttr = S.mergeTypeVisibilityAttr(D, *VA, VA->getVisibility()); in mergeDeclAttribute()
2809 NewAttr = S.mergeDLLImportAttr(D, *ImportA); in mergeDeclAttribute()
2811 NewAttr = S.mergeDLLExportAttr(D, *ExportA); in mergeDeclAttribute()
2813 NewAttr = S.mergeErrorAttr(D, *EA, EA->getUserDiagnostic()); in mergeDeclAttribute()
2815 NewAttr = S.mergeFormatAttr(D, *FA, FA->getType(), FA->getFormatIdx(), in mergeDeclAttribute()
2818 NewAttr = S.mergeSectionAttr(D, *SA, SA->getName()); in mergeDeclAttribute()
2820 NewAttr = S.mergeCodeSegAttr(D, *CSA, CSA->getName()); in mergeDeclAttribute()
[all …]
H A DSemaTemplateInstantiateDecl.cpp720 Attr *NewAttr = sema::instantiateTemplateAttributeForDecl( in InstantiateAttrsForDecl() local
722 if (NewAttr && isRelevantAttr(*this, New, NewAttr)) in InstantiateAttrsForDecl()
723 New->addAttr(NewAttr); in InstantiateAttrsForDecl()
888 Attr *NewAttr = sema::instantiateTemplateAttribute(TmplAttr, Context, in InstantiateAttrs() local
890 if (NewAttr && isRelevantAttr(*this, New, TmplAttr)) in InstantiateAttrs()
891 New->addAttr(NewAttr); in InstantiateAttrs()
H A DSemaDeclCXX.cpp6510 InheritableAttr *NewAttr = nullptr; in checkClassLevelDLLAttribute() local
6518 NewAttr = ::new (getASTContext()) in checkClassLevelDLLAttribute()
6521 NewAttr = ::new (getASTContext()) in checkClassLevelDLLAttribute()
6525 NewAttr = cast<InheritableAttr>(ClassAttr->clone(getASTContext())); in checkClassLevelDLLAttribute()
6528 NewAttr->setInherited(true); in checkClassLevelDLLAttribute()
6529 Member->addAttr(NewAttr); in checkClassLevelDLLAttribute()
6540 NewAttr = cast<InheritableAttr>(ClassAttr->clone(getASTContext())); in checkClassLevelDLLAttribute()
6541 NewAttr->setInherited(true); in checkClassLevelDLLAttribute()
6542 FD->addAttr(NewAttr); in checkClassLevelDLLAttribute()
6568 auto *NewAttr in propagateDLLAttrToBaseClassTemplate() local
[all...]
H A DSemaTemplateInstantiate.cpp3589 Attr *NewAttr = in InstantiateClass() local
3591 if (NewAttr) in InstantiateClass()
3592 I->NewDecl->addAttr(NewAttr); in InstantiateClass()
H A DSemaOpenMP.cpp7013 auto *NewAttr = OMPDeclareSimdDeclAttr::CreateImplicit( in ActOnOpenMPDeclareSimdDirective() local
7020 ADecl->addAttr(NewAttr); in ActOnOpenMPDeclareSimdDirective()
7664 auto *NewAttr = OMPDeclareVariantAttr::CreateImplicit( in ActOnOpenMPDeclareVariantDirective() local
7670 FD->addAttr(NewAttr); in ActOnOpenMPDeclareVariantDirective()
H A DSemaExpr.cpp8699 auto NewAttr = AttributedType::getNullabilityAttrKind(MergedKind); in computeConditionalNullability() local
8700 return Ctx.getAttributedType(NewAttr, ResTy, ResTy); in computeConditionalNullability()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAArch64.cpp893 if (auto *NewAttr = Callee->getAttr<ArmNewAttr>()) in checkFunctionCallABIStreaming() local
894 if (NewAttr->isNewZA()) in checkFunctionCallABIStreaming()
H A DX86.cpp1132 llvm::Attribute NewAttr = llvm::Attribute::getWithByValType( in addX86InterruptAttrs() local
1134 Fn->addParamAttr(0, NewAttr); in addX86InterruptAttrs()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4193 Attribute NewAttr; in parseFunctionRecord() local
4196 NewAttr = Attribute::getWithByValType(Context, PtrEltTy); in parseFunctionRecord()
4199 NewAttr = Attribute::getWithStructRetType(Context, PtrEltTy); in parseFunctionRecord()
4202 NewAttr = Attribute::getWithInAllocaType(Context, PtrEltTy); in parseFunctionRecord()
4208 Func->addParamAttr(i, NewAttr); in parseFunctionRecord()
4218 Attribute NewAttr = Attribute::getWithByValType(Context, ByValTy); in parseFunctionRecord() local
4219 Func->addParamAttr(0, NewAttr); in parseFunctionRecord()
4742 Attribute NewAttr; in propagateAttributeTypes() local
4745 NewAttr = Attribute::getWithByValType(Context, PtrEltTy); in propagateAttributeTypes()
4748 NewAttr = Attribute::getWithStructRetType(Context, PtrEltTy); in propagateAttributeTypes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp3539 InheritableAttr *NewAttr = nullptr; in mergeInheritableAttributes() local
3544 NewAttr = cast<InheritableAttr>(IA->clone(Context)); in mergeInheritableAttributes()
3545 NewAttr->setInherited(true); in mergeInheritableAttributes()
3546 D->addAttr(NewAttr); in mergeInheritableAttributes()
3551 NewAttr = AA->clone(Context); in mergeInheritableAttributes()
3552 NewAttr->setInherited(true); in mergeInheritableAttributes()
3553 D->addAttr(NewAttr); in mergeInheritableAttributes()