LLVM  15.0.0git
Macros | Functions | Variables
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>
Include dependency graph for SafeStackLayout.cpp:

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< bool > ClLayout ("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()

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

Definition at line 46 of file SafeStackLayout.cpp.

References llvm::alignTo().

Variable Documentation

◆ ClLayout

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