LLVM  8.0.1
Functions | Variables
X86AsmInstrumentation.cpp File Reference
#include "X86AsmInstrumentation.h"
#include "MCTargetDesc/X86MCTargetDesc.h"
#include "X86Operand.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SMLoc.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <limits>
#include <memory>
#include <vector>
Include dependency graph for X86AsmInstrumentation.cpp:

Go to the source code of this file.

Functions

static int64_t ApplyDisplacementBounds (int64_t Displacement)
 
static void CheckDisplacementBounds (int64_t Displacement)
 
static bool IsStackReg (unsigned Reg)
 
static bool IsSmallMemAccess (unsigned AccessSize)
 

Variables

static cl::opt< boolClAsanInstrumentAssembly ("asan-instrument-assembly", cl::desc("instrument assembly with AddressSanitizer checks"), cl::Hidden, cl::init(false))
 
static const int64_t MinAllowedDisplacement
 
static const int64_t MaxAllowedDisplacement
 

Function Documentation

◆ ApplyDisplacementBounds()

static int64_t ApplyDisplacementBounds ( int64_t  Displacement)
static

Definition at line 113 of file X86AsmInstrumentation.cpp.

References llvm::max().

Referenced by IsSmallMemAccess().

◆ CheckDisplacementBounds()

static void CheckDisplacementBounds ( int64_t  Displacement)
static

Definition at line 118 of file X86AsmInstrumentation.cpp.

References assert().

Referenced by IsSmallMemAccess().

◆ IsSmallMemAccess()

static bool IsSmallMemAccess ( unsigned  AccessSize)
static

◆ IsStackReg()

static bool IsStackReg ( unsigned  Reg)
static

Definition at line 123 of file X86AsmInstrumentation.cpp.

References llvm::N86::ESP.

Referenced by IsSmallMemAccess().

Variable Documentation

◆ ClAsanInstrumentAssembly

cl::opt<bool> ClAsanInstrumentAssembly("asan-instrument-assembly", cl::desc("instrument assembly with AddressSanitizer checks"), cl::Hidden, cl::init(false))
static

◆ MaxAllowedDisplacement

const int64_t MaxAllowedDisplacement
static
Initial value:
=
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)

Definition at line 110 of file X86AsmInstrumentation.cpp.

◆ MinAllowedDisplacement

const int64_t MinAllowedDisplacement
static
Initial value:
=
std::numeric_limits<int32_t>::min()

Definition at line 108 of file X86AsmInstrumentation.cpp.