Home
last modified time | relevance | path

Searched refs:NonNull (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DExecutorAddressTest.cpp22 ExecutorAddr NonNull(1); in TEST() local
27 EXPECT_FALSE(NonNull.isNull()); in TEST()
28 EXPECT_NE(Default, NonNull); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/orc/unittests/
H A Dexecutor_address_test.cpp27 ExecutorAddr NonNull(1); in TEST() local
32 EXPECT_FALSE(NonNull.isNull()); in TEST()
33 EXPECT_NE(Default, NonNull); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNonNullParamChecker.cpp54 for (const auto *NonNull : FD->specific_attrs<NonNullAttr>()) { in setBitsAccordingToFunctionAttributes() local
55 if (!NonNull->args_size()) { in setBitsAccordingToFunctionAttributes()
62 for (const ParamIdx &Idx : NonNull->args()) { in setBitsAccordingToFunctionAttributes()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp57 case Attribute::NonNull: in isUsefullToPreserve()
76 case Attribute::NonNull: in canonicalizedKnowledge()
211 bool IsPoisonAttr = Attr.hasAttribute(Attribute::NonNull) || in addCall()
262 addKnowledge({Attribute::NonNull, 0u, Pointer}); in addAccessedPtr()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp92 CB.addParamAttr(ArgNo, Attribute::NonNull); in addNonNullAttribute()
104 CB.removeParamAttr(ArgNo, Attribute::NonNull); in setConstantInArgument()
117 if (isa<Constant>(*I) || CB.paramHasAttr(ArgNo, Attribute::NonNull)) in isCondRelevantToAnyCallArgument()
H A DCorrelatedValuePropagation.cpp672 if (Type && !CB.paramHasAttr(ArgNo, Attribute::NonNull) && in processCallSite()
690 Attribute::get(Ctx, Attribute::NonNull)); in processCallSite()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSpecifiers.h319 NonNull = 0, enumerator
/llvm-project-15.0.7/llvm/unittests/IR/
H A DAttributesTest.cpp155 B.addAttribute(Attribute::NonNull); in TEST()
160 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::NonNull)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp54 Attribute::NonNull, in isValidForDXIL()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp875 FArg->addAttr(Attribute::NonNull); in addArgumentAttrsFromCallsites()
1281 if (F->getAttributes().hasRetAttr(Attribute::NonNull)) in addNonNullAttrs()
1302 F->addRetAttr(Attribute::NonNull); in addNonNullAttrs()
1315 if (F->getAttributes().hasRetAttr(Attribute::NonNull) || in addNonNullAttrs()
1320 F->addRetAttr(Attribute::NonNull); in addNonNullAttrs()
/llvm-project-15.0.7/clang/lib/APINotes/
H A DAPINotesYAMLCompiler.cpp89 IO.enumCase(NK, "Nonnull", NullabilityKind::NonNull); in enumeration()
98 IO.enumCase(NK, "N", NullabilityKind::NonNull); in enumeration()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp85 KernArgSegment->addRetAttr(Attribute::NonNull); in runOnFunction()
H A DAMDGPUPromoteAlloca.cpp266 DispatchPtr->addRetAttr(Attribute::NonNull); in getLocalSizeYZ()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DObjCMemberwiseInitializer.cpp52 case NullabilityKind::NonNull: in getTypeStr()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DASTTests.cpp588 ASSERT_THAT(DeclAttrs("b"), Contains(attrKind(attr::NonNull))); in TEST()
H A DDiagnosticsTests.cpp875 NullabilityKind::NonNull); in TEST()
893 NullabilityKind::NonNull); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp506 NewF->addParamAttr(0, Attribute::NonNull); in createCloneDeclaration()
841 ParamAttrs.addAttribute(Attribute::NonNull); in addFramePointerAttrs()
1667 F.removeRetAttr(Attribute::NonNull); in splitAsyncCoroutine()
1766 F.removeRetAttr(Attribute::NonNull); in splitRetconCoroutine()
H A DCoroutines.cpp233 CB->addRetAttr(Attribute::NonNull); in buildFrom()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2241 {RetainedKnowledge{Attribute::NonNull, 0, A}}, Next, &AC, &DT)) { in visitCallInst()
2894 if (Call.hasRetAttr(Attribute::NonNull)) { in annotateAnyAllocSite()
2938 !Call.paramHasAttr(ArgNo, Attribute::NonNull) && in visitCallBase()
2950 Attribute::get(Ctx, Attribute::NonNull)); in visitCallBase()
3120 if (!GCR.hasRetAttr(Attribute::NonNull) && in visitCallBase()
3122 GCR.addRetAttr(Attribute::NonNull); in visitCallBase()
/llvm-project-15.0.7/clang/include/clang/APINotes/
H A DTypes.h574 return NullabilityKind::NonNull; in getTypeInfo()
/llvm-project-15.0.7/clang/lib/Basic/
H A DIdentifierTable.cpp764 case NullabilityKind::NonNull: in getNullabilitySpelling()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCall.cpp2161 RetAttrs.addAttribute(llvm::Attribute::NonNull); in ConstructAttributeList()
2355 RetAttrs.addAttribute(llvm::Attribute::NonNull); in ConstructAttributeList()
2403 Attrs.addAttribute(llvm::Attribute::NonNull); in ConstructAttributeList()
2534 Attrs.addAttribute(llvm::Attribute::NonNull); in ConstructAttributeList()
2816 AI->addAttr(llvm::Attribute::NonNull); in EmitFunctionProlog()
2841 AI->addAttr(llvm::Attribute::NonNull); in EmitFunctionProlog()
2856 AI->addAttr(llvm::Attribute::NonNull); in EmitFunctionProlog()
4083 *Nullability == NullabilityKind::NonNull && in EmitNonNullArgCheck()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAnalysis.cpp585 Attribute::NonNull, Attribute::NoUndef}) { in attributesPermitTailCall()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DAttributes.td169 def NonNull : EnumAttr<"nonnull", [ParamAttr, RetAttr]>;
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseObjc.cpp936 NullabilityKind::NonNull, in ParseObjCPropertyAttribute()
939 DS.setNullability(Tok.getLocation(), NullabilityKind::NonNull); in ParseObjCPropertyAttribute()
1185 Nullability = NullabilityKind::NonNull; in ParseObjCTypeQualifierList()

123