LLVM  14.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/MathExtras.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, uint64_t 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 22 of file SafeStackLayout.cpp.

Function Documentation

◆ AdjustStackOffset()

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

Definition at line 47 of file SafeStackLayout.cpp.

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

Variable Documentation

◆ ClLayout

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