LLVM  9.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:203
#define P(N)

Definition at line 28 of file CBindingWrapping.h.

Referenced by llvm::object::Binary::checkOffset(), llvm::isa_impl< PointerType, Type >::doit(), llvm::isa_impl< GlobalObject, Value >::doit(), llvm::Metadata::getMetadataID(), llvm::NamedMDNode::operands(), and llvm::DIBuilder::replaceTemporary().

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS

#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS (   ty,
  ref 
)

◆ 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:203
#define P(N)

Definition at line 36 of file CBindingWrapping.h.