LLVM  8.0.1
Enumerations | Functions
Mangler.cpp File Reference
#include "llvm/IR/Mangler.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for Mangler.cpp:

Go to the source code of this file.

Enumerations

enum  ManglerPrefixTy
 

Functions

static void getNameWithPrefixImpl (raw_ostream &OS, const Twine &GVName, ManglerPrefixTy PrefixTy, const DataLayout &DL, char Prefix)
 
static void getNameWithPrefixImpl (raw_ostream &OS, const Twine &GVName, const DataLayout &DL, ManglerPrefixTy PrefixTy)
 
static bool hasByteCountSuffix (CallingConv::ID CC)
 
static void addByteCountSuffix (raw_ostream &OS, const Function *F, const DataLayout &DL)
 Microsoft fastcall and stdcall functions require a suffix on their name indicating the number of words of arguments they take. More...
 

Enumeration Type Documentation

◆ ManglerPrefixTy

Definition at line 26 of file Mangler.cpp.

Function Documentation

◆ addByteCountSuffix()

static void addByteCountSuffix ( raw_ostream OS,
const Function F,
const DataLayout DL 
)
static

Microsoft fastcall and stdcall functions require a suffix on their name indicating the number of words of arguments they take.

Definition at line 94 of file Mangler.cpp.

References llvm::alignTo(), llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::DataLayout::getPointerSize(), and llvm::DataLayout::getTypeAllocSize().

Referenced by llvm::Mangler::getNameWithPrefix().

◆ getNameWithPrefixImpl() [1/2]

static void getNameWithPrefixImpl ( raw_ostream OS,
const Twine GVName,
ManglerPrefixTy  PrefixTy,
const DataLayout DL,
char  Prefix 
)
static

◆ getNameWithPrefixImpl() [2/2]

static void getNameWithPrefixImpl ( raw_ostream OS,
const Twine GVName,
const DataLayout DL,
ManglerPrefixTy  PrefixTy 
)
static

◆ hasByteCountSuffix()

static bool hasByteCountSuffix ( CallingConv::ID  CC)
static