LLVM 20.0.0git
Functions
InferAlignment.cpp File Reference
#include "llvm/Transforms/Scalar/InferAlignment.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Support/KnownBits.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"

Go to the source code of this file.

Functions

static bool tryToImproveAlign (const DataLayout &DL, Instruction *I, function_ref< Align(Value *PtrOp, Align OldAlign, Align PrefAlign)> Fn)
 
bool inferAlignment (Function &F, AssumptionCache &AC, DominatorTree &DT)
 

Function Documentation

◆ inferAlignment()

bool inferAlignment ( Function F,
AssumptionCache AC,
DominatorTree DT 
)

◆ tryToImproveAlign()

static bool tryToImproveAlign ( const DataLayout DL,
Instruction I,
function_ref< Align(Value *PtrOp, Align OldAlign, Align PrefAlign)>  Fn 
)
static