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

References

tools/clang/lib/CodeGen/CGBlocks.cpp
  186   ASTContext &C = CGM.getContext();
  189     cast<llvm::IntegerType>(CGM.getTypes().ConvertType(C.UnsignedLongTy));
  191   if (CGM.getLangOpts().OpenCL)
  194            CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant));
  196     i8p = CGM.VoidPtrTy;
  202       CGM.getLangOpts().getGC() == LangOptions::NonGC) {
  203     descName = getBlockDescriptorName(blockInfo, CGM);
  204     if (llvm::GlobalValue *desc = CGM.getModule().getNamedValue(descName))
  206                                             CGM.getBlockDescriptorType());
  211   ConstantInitBuilder builder(CGM);
  227     llvm::Constant *copyHelper = buildCopyHelper(CGM, blockInfo);
  231     llvm::Constant *disposeHelper = buildDisposeHelper(CGM, blockInfo);
  242     CGM.getContext().getObjCEncodingForBlock(blockInfo.getBlockExpr());
  244     CGM.GetAddrOfConstantCString(typeAtEncoding).getPointer(), i8p));
  248     if (CGM.getLangOpts().getGC() != LangOptions::NonGC)
  249       elements.add(CGM.getObjCRuntime().BuildGCBlockLayout(CGM, blockInfo));
  249       elements.add(CGM.getObjCRuntime().BuildGCBlockLayout(CGM, blockInfo));
  251       elements.add(CGM.getObjCRuntime().BuildRCBlockLayout(CGM, blockInfo));
  251       elements.add(CGM.getObjCRuntime().BuildRCBlockLayout(CGM, blockInfo));
  273       elements.finishAndCreateGlobal(descName, CGM.getPointerAlign(),
  277     if (CGM.supportsCOMDAT())
  278       global->setComdat(CGM.getModule().getOrInsertComdat(descName));
  283   return llvm::ConstantExpr::getBitCast(global, CGM.getBlockDescriptorType());