reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Bitcode/Reader/BitReader.cpp
   40   LLVMContext &Ctx = *unwrap(ContextRef);
   62   LLVMContext &Ctx = *unwrap(ContextRef);
   81   LLVMContext &Ctx = *unwrap(ContextRef);
  108   LLVMContext &Ctx = *unwrap(ContextRef);
lib/IR/Core.cpp
   79   return wrap(new LLVMContext());
   82 LLVMContextRef LLVMGetGlobalContext() { return wrap(&*GlobalContext); }
   87   unwrap(C)->setDiagnosticHandlerCallBack(
   95       unwrap(C)->getDiagnosticHandlerCallBack());
   99   return unwrap(C)->getDiagnosticContext();
  106   unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle);
  110   return unwrap(C)->shouldDiscardValueNames();
  114   unwrap(C)->setDiscardValueNames(Discard);
  118   delete unwrap(C);
  123   return unwrap(C)->getMDKindID(StringRef(Name, SLen));
  143   auto &Ctx = *unwrap(C);
  169   return wrap(Attribute::get(*unwrap(C), StringRef(K, KLength),
  236   return wrap(new Module(ModuleID, *unwrap(C)));
  469   return wrap(&unwrap(M)->getContext());
  523   return wrap(&unwrap(Ty)->getContext());
  547   return (LLVMTypeRef) Type::getInt1Ty(*unwrap(C));
  550   return (LLVMTypeRef) Type::getInt8Ty(*unwrap(C));
  553   return (LLVMTypeRef) Type::getInt16Ty(*unwrap(C));
  556   return (LLVMTypeRef) Type::getInt32Ty(*unwrap(C));
  559   return (LLVMTypeRef) Type::getInt64Ty(*unwrap(C));
  562   return (LLVMTypeRef) Type::getInt128Ty(*unwrap(C));
  565   return wrap(IntegerType::get(*unwrap(C), NumBits));
  597   return (LLVMTypeRef) Type::getHalfTy(*unwrap(C));
  600   return (LLVMTypeRef) Type::getFloatTy(*unwrap(C));
  603   return (LLVMTypeRef) Type::getDoubleTy(*unwrap(C));
  606   return (LLVMTypeRef) Type::getX86_FP80Ty(*unwrap(C));
  609   return (LLVMTypeRef) Type::getFP128Ty(*unwrap(C));
  612   return (LLVMTypeRef) Type::getPPC_FP128Ty(*unwrap(C));
  615   return (LLVMTypeRef) Type::getX86_MMXTy(*unwrap(C));
  673   return wrap(StructType::get(*unwrap(C), Tys, Packed != 0));
  684   return wrap(StructType::create(*unwrap(C), Name));
  781   return wrap(Type::getVoidTy(*unwrap(C)));
  784   return wrap(Type::getLabelTy(*unwrap(C)));
  787   return wrap(Type::getTokenTy(*unwrap(C)));
  790   return wrap(Type::getMetadataTy(*unwrap(C)));
 1050   return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen)));
 1055   return wrap(MDNode::get(*unwrap(C), ArrayRef<Metadata*>(unwrap(MDs), Count)));
 1060   LLVMContext &Context = *unwrap(C);
 1071   LLVMContext &Context = *unwrap(C);
 1101   return wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD)));
 1373   return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length),
 1407   return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count),
 2343   return wrap(llvm::Intrinsic::getType(*unwrap(Ctx), IID, Tys));
 2634   return wrap(llvm::BasicBlock::Create(*unwrap(C), Name));
 2654   return wrap(BasicBlock::Create(*unwrap(C), Name, unwrap<Function>(FnRef)));
 2665   return wrap(BasicBlock::Create(*unwrap(C), Name, BB->getParent(), BB));
 2988   return wrap(new IRBuilder<>(*unwrap(C)));
lib/IR/DebugInfo.cpp
  887   return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope),
 1321       MDTuple::getTemporary(*unwrap(Ctx), {unwrap(Data), Count}).release());
lib/IRReader/IRReader.cpp
  122       wrap(parseIR(MB->getMemBufferRef(), Diag, *unwrap(ContextRef)).release());
lib/Object/Object.cpp
   67   auto maybeContext = Context ? unwrap(Context) : nullptr;
lib/Target/Target.cpp
   86   return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext())));
   90   return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS));
   94   return wrap(unwrap(TD)->getIntPtrType(*unwrap(C)));
   98   return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS));
unittests/Linker/LinkModulesTest.cpp
  225   LLVMContextSetDiagnosticHandler(wrap(&Ctx), diagnosticHandler, &Err);