CIRCT 24.0.0git
Loading...
Searching...
No Matches
ArrayRefAllocOpLowering Struct Reference
Inheritance diagram for ArrayRefAllocOpLowering:
Collaboration diagram for ArrayRefAllocOpLowering:

Public Member Functions

LogicalResult matchAndRewrite (ArrayRefAllocOp op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override
size_t computeAllocaAlignment (ArrayRefType type, Operation *op) const
void initializeArray (ConversionPatternRewriter &rewriter, Location loc, Value alloc, ArrayAttr initAttr, ArrayRefType arrayRefType) const

Static Public Member Functions

static bool isZero (Attribute attr)

Private Attributes

DenseMap< ArrayRefType, size_t > alignmentCache

Detailed Description

Definition at line 1458 of file LowerArcToLLVM.cpp.

Member Function Documentation

◆ computeAllocaAlignment()

size_t ArrayRefAllocOpLowering::computeAllocaAlignment ( ArrayRefType type,
Operation * op ) const
inline

Definition at line 1493 of file LowerArcToLLVM.cpp.

References alignmentCache.

Referenced by matchAndRewrite().

◆ initializeArray()

void ArrayRefAllocOpLowering::initializeArray ( ConversionPatternRewriter & rewriter,
Location loc,
Value alloc,
ArrayAttr initAttr,
ArrayRefType arrayRefType ) const
inline

Definition at line 1516 of file LowerArcToLLVM.cpp.

References computeElementByteWidth().

Referenced by matchAndRewrite().

◆ isZero()

bool ArrayRefAllocOpLowering::isZero ( Attribute attr)
inlinestatic

Definition at line 1508 of file LowerArcToLLVM.cpp.

References isZero().

Referenced by isZero(), and matchAndRewrite().

◆ matchAndRewrite()

LogicalResult ArrayRefAllocOpLowering::matchAndRewrite ( ArrayRefAllocOp op,
OpAdaptor adaptor,
ConversionPatternRewriter & rewriter ) const
inlineoverride

Member Data Documentation

◆ alignmentCache

DenseMap<ArrayRefType, size_t> ArrayRefAllocOpLowering::alignmentCache
mutableprivate

Definition at line 1535 of file LowerArcToLLVM.cpp.

Referenced by computeAllocaAlignment().


The documentation for this struct was generated from the following file: