LLVM API Documentation

Typedefs | Functions | Variables
NVPTXUtilities.cpp File Reference
#include "NVPTXUtilities.h"
#include "NVPTX.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include <algorithm>
#include <cstring>
#include <map>
#include <string>
#include <vector>
#include "llvm/Support/ManagedStatic.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/Support/MutexGuard.h"
Include dependency graph for NVPTXUtilities.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< std::string,
std::vector< unsigned > > 
key_val_pair_t
typedef std::map< const
GlobalValue *, key_val_pair_t
global_val_annot_t
typedef std::map< const Module
*, global_val_annot_t
per_module_annot_t

Functions

static void cacheAnnotationFromMD (const MDNode *md, key_val_pair_t &retval)
static void cacheAnnotationFromMD (const Module *m, const GlobalValue *gv)

Variables

ManagedStatic< per_module_annot_tannotationCache
static sys::Mutex Lock

Typedef Documentation

Definition at line 32 of file NVPTXUtilities.cpp.

typedef std::map<std::string, std::vector<unsigned> > key_val_pair_t

Definition at line 31 of file NVPTXUtilities.cpp.

Definition at line 33 of file NVPTXUtilities.cpp.


Function Documentation

static void cacheAnnotationFromMD ( const MDNode md,
key_val_pair_t retval 
) [static]
static void cacheAnnotationFromMD ( const Module m,
const GlobalValue gv 
) [static]

Variable Documentation

sys::Mutex Lock [static]