struct AAHeapToStack

Declaration

struct AAHeapToStack : public StateWrapper { /* full declaration omitted */ };

Description

Helper to tie a abstract state implementation to an abstract attribute.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3978

Inherits from: StateWrapper

Member Variables

public static const char ID
Unique ID (due to the unique address)

Method Overview

Methods

AAHeapToStack(const llvm::IRPosition& IRP,
              llvm::Attributor& A)

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3980

Parameters

const llvm::IRPosition& IRP
llvm::Attributor& A

static bool classof(
    const llvm::AbstractAttribute* AA)

Description

This function should return true if the type of the \p AA is AAHeapToStack

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3999

Parameters

const llvm::AbstractAttribute* AA

static llvm::AAHeapToStack& createForPosition(
    const llvm::IRPosition& IRP,
    llvm::Attributor& A)

Description

Create an abstract attribute view for the position \p IRP.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3990

Parameters

const llvm::IRPosition& IRP
llvm::Attributor& A

const char* getIdAddr() const

Description

See AbstractAttribute::getIdAddr()

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3996

const std::string getName() const

Description

See AbstractAttribute::getName()

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3993

virtual bool isAssumedHeapToStack(
    const llvm::CallBase& CB) const

Description

Returns true if HeapToStack conversion is assumed to be possible.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3983

Parameters

const llvm::CallBase& CB

virtual bool isAssumedHeapToStackRemovedFree(
    llvm::CallBase& CB) const

Description

Returns true if HeapToStack conversion is assumed and the CB is a callsite to a free operation to be removed.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:3987

Parameters

llvm::CallBase& CB