LLVM 22.0.0git
SafeStackLayout.cpp File Reference
#include "SafeStackLayout.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "safestacklayout"

Functions

static unsigned AdjustStackOffset (unsigned Offset, unsigned Size, Align Alignment)

Variables

static cl::opt< boolClLayout ("safe-stack-layout", cl::desc("enable safe stack layout"), cl::Hidden, cl::init(true))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "safestacklayout"

Definition at line 21 of file SafeStackLayout.cpp.

Function Documentation

◆ AdjustStackOffset()

unsigned AdjustStackOffset ( unsigned Offset,
unsigned Size,
Align Alignment )
static

Definition at line 46 of file SafeStackLayout.cpp.

References llvm::alignTo(), llvm::Offset, and Size.

Variable Documentation

◆ ClLayout

cl::opt< bool > ClLayout("safe-stack-layout", cl::desc("enable safe stack layout"), cl::Hidden, cl::init(true)) ( "safe-stack-layout" ,
cl::desc("enable safe stack layout") ,
cl::Hidden ,
cl::init(true)  )
static