MLIR 23.0.0git
StaticMemoryPlanning.cpp File Reference
#include "mlir/Dialect/Bufferization/Transforms/StaticMemoryPlanning.h"
#include "llvm/Support/MathExtras.h"
#include <numeric>

Go to the source code of this file.

Functions

static int64_t alignOffset (int64_t offset, int64_t alignment)
 Align an offset to the specified alignment.

Function Documentation

◆ alignOffset()

int64_t alignOffset ( int64_t offset,
int64_t alignment )
static

Align an offset to the specified alignment.

Definition at line 16 of file StaticMemoryPlanning.cpp.

Referenced by mlir::bufferization::bestFitMemoryPlanner(), and mlir::bufferization::trivialMemoryPlanner().