CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ArrayRefAllocOpLowering Struct Reference
Inheritance diagram for ArrayRefAllocOpLowering:
Inheritance graph
[legend]
Collaboration diagram for ArrayRefAllocOpLowering:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

DenseMap< ArrayRefType, size_t > alignmentCache
 

Detailed Description

Definition at line 1424 of file LowerArcToLLVM.cpp.

Member Function Documentation

◆ computeAllocaAlignment()

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

Definition at line 1459 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 1479 of file LowerArcToLLVM.cpp.

References computeElementByteWidth().

Referenced by matchAndRewrite().

◆ isZero()

bool ArrayRefAllocOpLowering::isZero ( ArrayAttr  arrayAttr) const
inline

Definition at line 1474 of file LowerArcToLLVM.cpp.

Referenced by 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 1498 of file LowerArcToLLVM.cpp.

Referenced by computeAllocaAlignment().


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