class StringAttributeImpl

Declaration

class StringAttributeImpl : public AttributeImpl,
                            private TrailingObjects { /* full declaration omitted */ };

Description

This class represents a single, uniqued attribute. That attribute could be a single enum, a tuple, or a string.

Declared at: llvm/lib/IR/AttributeImpl.h:146

Inherits from: AttributeImpl, TrailingObjects

Member Variables

private unsigned int KindSize
private unsigned int ValSize

Method Overview

Inherited from AttributeImpl:

Inherited from FoldingSetBase::Node:

Methods

StringAttributeImpl(
    llvm::StringRef Kind,
    llvm::StringRef Val = llvm::StringRef())

Declared at: llvm/lib/IR/AttributeImpl.h:158

Parameters

llvm::StringRef Kind
llvm::StringRef Val = llvm::StringRef()

llvm::StringRef getStringKind() const

Declared at: llvm/lib/IR/AttributeImpl.h:169

llvm::StringRef getStringValue() const

Declared at: llvm/lib/IR/AttributeImpl.h:172

size_t numTrailingObjects(
    OverloadToken<char>) const

Declared at: llvm/lib/IR/AttributeImpl.h:153

Parameters

OverloadToken<char>

static size_t totalSizeToAlloc(
    llvm::StringRef Kind,
    llvm::StringRef Val)

Declared at: llvm/lib/IR/AttributeImpl.h:176

Parameters

llvm::StringRef Kind
llvm::StringRef Val