Home
last modified time | relevance | path

Searched refs:MemorySlot (Results 1 – 7 of 7) sorted by relevance

/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMMemorySlot.cpp1 //===- LLVMMemorySlot.cpp - MemorySlot interfaces ---------------*- C++ -*-===//
9 // This file implements MemorySlot-related interfaces for LLVM dialect
31 llvm::SmallVector<MemorySlot> LLVM::AllocaOp::getPromotableSlots() { in getPromotableSlots()
35 return {MemorySlot{getResult(), getElemType()}}; in getPromotableSlots()
38 Value LLVM::AllocaOp::getDefaultValue(const MemorySlot &slot, in getDefaultValue()
43 void LLVM::AllocaOp::handleBlockArgument(const MemorySlot &slot, in handleBlockArgument()
54 LLVM::AllocaOp::handlePromotionComplete(const MemorySlot &slot, in handlePromotionComplete()
80 DenseMap<Attribute, MemorySlot> LLVM::AllocaOp::destructure( in destructure()
88 DenseMap<Attribute, MemorySlot> slotMap; in destructure()
96 slotMap.try_emplace<MemorySlot>(inde in destructure()
[all...]
/llvm-project/mlir/lib/Dialect/MemRef/IR/
H A DMemRefMemorySlot.cpp71 SmallVector<MemorySlot> memref::AllocaOp::getPromotableSlots() { in getPromotableSlots()
81 return {MemorySlot{getResult(), type.getElementType()}}; in getPromotableSlots()
84 Value memref::AllocaOp::getDefaultValue(const MemorySlot &slot, in getDefaultValue()
99 memref::AllocaOp::handlePromotionComplete(const MemorySlot &slot, in handlePromotionComplete()
108 void memref::AllocaOp::handleBlockArgument(const MemorySlot &slot, in handleBlockArgument()
128 DenseMap<Attribute, MemorySlot> memref::AllocaOp::destructure( in destructure()
134 DenseMap<Attribute, MemorySlot> slotMap; in destructure()
142 slotMap.try_emplace<MemorySlot>(usedIndex, in destructure()
161 bool memref::LoadOp::loadsFrom(const MemorySlot &slot) { in loadsFrom()
165 bool memref::LoadOp::storesTo(const MemorySlot &slot) { return false; } in storesTo()
[all …]
/llvm-project/mlir/include/mlir/Interfaces/
H A DMemorySlotInterfaces.td1 //===-- MemorySlotInterfaces.td - MemorySlot interfaces ----*- tablegen -*-===//
36 }], "::llvm::SmallVector<::mlir::MemorySlot>", "getPromotableSlots",
50 "const ::mlir::MemorySlot &":$slot,
62 "const ::mlir::MemorySlot &":$slot,
78 "const ::mlir::MemorySlot &":$slot,
105 (ins "const ::mlir::MemorySlot &":$slot)
113 (ins "const ::mlir::MemorySlot &":$slot)
130 (ins "const ::mlir::MemorySlot &":$slot,
145 (ins "const ::mlir::MemorySlot &":$slot,
174 (ins "const ::mlir::MemorySlot &":$slot,
[all …]
H A DMemorySlotInterfaces.h20 struct MemorySlot { struct
28 struct DestructurableMemorySlot : public MemorySlot { argument
/llvm-project/mlir/lib/Transforms/
H A DMem2Reg.cpp121 MemorySlotPromotionAnalyzer(MemorySlot slot, DominanceInfo &dominance, in MemorySlotPromotionAnalyzer()
156 MemorySlot slot;
168 MemorySlotPromoter(MemorySlot slot, PromotableAllocationOpInterface allocator,
201 MemorySlot slot;
223 MemorySlot slot, PromotableAllocationOpInterface allocator, in MemorySlotPromoter()
663 for (MemorySlot slot : allocator.getPromotableSlots()) { in tryToPromoteMemorySlots()
H A DSROA.cpp56 SmallVector<MemorySlot> usedSafelyWorklist; in computeDestructuringInfo()
82 MemorySlot mustBeUsedSafely = usedSafelyWorklist.pop_back_val(); in computeDestructuringInfo()
146 DenseMap<Attribute, MemorySlot> subslots = in destructureSlot()
/llvm-project/mlir/test/lib/Dialect/Test/
H A DTestOpDefs.cpp1274 llvm::SmallVector<MemorySlot> TestMultiSlotAlloca::getPromotableSlots() { in createNewMultiAllocaWithoutSlot()
1275 SmallVector<MemorySlot> slots; in createNewMultiAllocaWithoutSlot()
1277 slots.push_back(MemorySlot{ in createNewMultiAllocaWithoutSlot()
1283 Value TestMultiSlotAlloca::getDefaultValue(const MemorySlot &slot, in createNewMultiAllocaWithoutSlot()
1289 void TestMultiSlotAlloca::handleBlockArgument(const MemorySlot &slot, in handlePromotionComplete()
1297 createNewMultiAllocaWithoutSlot(const MemorySlot &slot, OpBuilder &builder, in getDestructurableSlots()
1328 TestMultiSlotAlloca::handlePromotionComplete(const MemorySlot &slot, in destructure()
1355 DenseMap<Attribute, MemorySlot> TestMultiSlotAlloca::destructure(
1362 DenseMap<Attribute, MemorySlot> slotMap;
1369 slotMap.try_emplace<MemorySlot>(usedInde
[all...]