LLVM  6.0.0svn
Macros
CBindingWrapping.h File Reference
#include "llvm-c/Types.h"
#include "llvm/Support/Casting.h"
Include dependency graph for CBindingWrapping.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref)
 
#define DEFINE_ISA_CONVERSION_FUNCTIONS(ty, ref)
 
#define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref)
 

Macro Definition Documentation

◆ DEFINE_ISA_CONVERSION_FUNCTIONS

#define DEFINE_ISA_CONVERSION_FUNCTIONS (   ty,
  ref 
)
Value:
\
template<typename T> \
inline T *unwrap(ref P) { \
return cast<T>(unwrap(P)); \
}
#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref)
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:195
#define P(N)

Definition at line 29 of file CBindingWrapping.h.

Referenced by llvm::GraphTraits< const Type * >::child_end(), llvm::isa_impl< GlobalObject, Value >::doit(), llvm::Metadata::getMetadataID(), and llvm::DIBuilder::replaceTemporary().

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS

#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS (   ty,
  ref 
)
Value:
inline ty *unwrap(ref P) { \
return reinterpret_cast<ty*>(P); \
} \
\
inline ref wrap(const ty *P) { \
return reinterpret_cast<ref>(const_cast<ty*>(P)); \
}
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:195
#define P(N)
LLVMAttributeRef wrap(Attribute Attr)
Definition: Attributes.h:190

Definition at line 20 of file CBindingWrapping.h.

◆ DEFINE_STDCXX_CONVERSION_FUNCTIONS

#define DEFINE_STDCXX_CONVERSION_FUNCTIONS (   ty,
  ref 
)
Value:
\
template<typename T> \
inline T *unwrap(ref P) { \
T *Q = (T*)unwrap(P); \
assert(Q && "Invalid cast!"); \
return Q; \
}
#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref)
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:195
#define P(N)

Definition at line 37 of file CBindingWrapping.h.