LLVM  8.0.1
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(), llvm::NamedMDNode::operands(), 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.

Referenced by llvm::DiagnosticInfoISelFallback::classof(), llvm::EngineBuilder::create(), llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::JITEventListener::createPerfJITEventListener(), llvm::MemoryBufferRef::getBufferSize(), llvm::BasicBlock::getLandingPadInst(), llvm::simplify_type< const Use >::getSimplifiedValue(), and llvm::operator<<().

◆ 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.