std › zig › llvm › Builder › attrattrFunction parametersParameters#self:*Builderattribute:AttributeType definitions in this namespaceTypes#OptionsStringBinaryOpcodeCastOpcodeCmpPredicateTypeAttributeAttributesFunctionAttributesLinkagePreemptionVisibilityDllStorageClassThreadLocalMutabilityUnnamedAddrAddrSpaceExternallyInitializedAlignmentCallConvStrtabStringGlobalAliasVariableIntrinsicFunctionDebugLocationWipFunctionFloatConditionIntegerConditionMemoryAccessKindSyncScopeAtomicOrderingFastMathFastMathKindConstantValueMetadataStringMetadataProducerFunctions in this namespaceFunctions#strtabStringstrtabStringIfExistsstrtabStringFmtstrtabStringFmtAssumeCapacitytrailingStrtabStringtrailingStrtabStringAssumeCapacityinitclearAndFreedeinitfinishModuleAsmstringstringNullstringIfExistsfmtfmtAssumeCapacitytrailingStringtrailingStringAssumeCapacityfnTypeintTypeptrTypevectorTypearrayTypestructTypeopaqueTypenamedTypeSetBodyattrattrsfnAttrsaddGlobaladdGlobalAssumeCapacitygetGlobaladdAliasaddAliasAssumeCapacityaddVariableaddVariableAssumeCapacityaddFunctionaddFunctionAssumeCapacitygetIntrinsicintConstintValuebigIntConstbigIntValuefpConstfpValuenanConstnanValuehalfConsthalfValuebfloatConstbfloatValuefloatConstfloatValuedoubleConstdoubleValuefp128Constfp128Valuex86_fp80Constx86_fp80Valueppc_fp128Constppc_fp128ValuenullConstnullValuenoneConstnoneValuestructConststructValuearrayConstarrayValuestringConststringValuevectorConstvectorValuesplatConstsplatValuezeroInitConstzeroInitValueundefConstundefValuepoisonConstpoisonValueblockAddrConstblockAddrValuedsoLocalEquivalentConstdsoLocalEquivalentValuenoCfiConstnoCfiValueconvConstconvValuecastConstcastValuegepConstgepValuebinConstbinValueasmConstasmValuedumpprintToFilePathprintToFileprintmetadataStringmetadataStringFromStrtabStringmetadataStringFmtmetadataStringFmtAssumeCapacitytrailingMetadataStringtrailingMetadataStringAssumeCapacitymetadataNameddebugFiledebugCompileUnitdebugSubprogramdebugLexicalBlockdebugLocationdebugBoolTypedebugUnsignedTypedebugSignedTypedebugFloatTypedebugForwardReferencedebugStructTypedebugUnionTypedebugEnumerationTypedebugArrayTypedebugVectorTypedebugPointerTypedebugMemberTypedebugSubroutineTypedebugEnumeratordebugSubrangedebugExpressionmetadataTuplestrTuplemetadataModuleFlagdebugLocalVardebugParameterdebugGlobalVardebugGlobalVarExpressionmetadataConstantdebugForwardReferenceSetTypemetadataNoneAssumeCapacitydebugCompileUnitAssumeCapacitytoBitcode= 16Values#expected_args_len= 16expected_attrs_len= 16expected_fields_len= 32expected_gep_indices_len= 8expected_cases_len= 8expected_incoming_len= 8SourceImplementation#pub fn attr(self: *Builder, attribute: Attribute) Allocator.Error!Attribute.Index { try self.attributes.ensureUnusedCapacity(self.gpa, 1); const gop = self.attributes.getOrPutAssumeCapacity(attribute.toStorage()); if (!gop.found_existing) gop.value_ptr.* = {}; return @enumFromInt(gop.index); }
pub fn attr(self: *Builder, attribute: Attribute) Allocator.Error!Attribute.Index { try self.attributes.ensureUnusedCapacity(self.gpa, 1); const gop = self.attributes.getOrPutAssumeCapacity(attribute.toStorage()); if (!gop.found_existing) gop.value_ptr.* = {}; return @enumFromInt(gop.index); }