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

Declarations

include/llvm/IR/Metadata.def
   96 HANDLE_SPECIALIZED_MDNODE_LEAF(DICompileUnit)

References

examples/Kaleidoscope/Chapter9/toy.cpp
   93   DICompileUnit *TheCU;
include/llvm/IR/DIBuilder.h
   45     DICompileUnit *CUNode;   ///< The one compile unit created by this DIBuiler.
  103                        DICompileUnit *CU = nullptr);
  138     DICompileUnit *
  142                       DICompileUnit::DebugEmissionKind Kind =
  143                           DICompileUnit::DebugEmissionKind::FullDebug,
  146                       DICompileUnit::DebugNameTableKind NameTableKind =
  147                           DICompileUnit::DebugNameTableKind::Default,
include/llvm/IR/DebugInfo.h
   84   void processCompileUnit(DICompileUnit *CU);
   88   bool addCompileUnit(DICompileUnit *CU);
   96       SmallVectorImpl<DICompileUnit *>::const_iterator;
  130   SmallVector<DICompileUnit *, 8> CUs;
include/llvm/IR/DebugInfoMetadata.h
 1166   static DICompileUnit *
 1186   static DICompileUnit *
 1665           DISPFlags SPFlags, DICompileUnit *Unit,
 1796   DICompileUnit *getUnit() const {
 1797     return cast_or_null<DICompileUnit>(getRawUnit());
 1799   void replaceUnit(DICompileUnit *CU) { replaceOperandWith(5, CU); }
include/llvm/IR/Metadata.h
  970   static typename std::enable_if<std::is_base_of<MDNode, T>::value, T *>::type
  970   static typename std::enable_if<std::is_base_of<MDNode, T>::value, T *>::type
  971   replaceWithPermanent(std::unique_ptr<T, TempMDNodeDeleter> N) {
  972     return cast<T>(N.release()->replaceWithPermanentImpl());
 1048   static void dispatchResetHash(NodeTy *N, std::true_type) {
 1052   static void dispatchResetHash(NodeTy *, std::false_type) {}
include/llvm/IR/Module.h
  733       : public std::iterator<std::input_iterator_tag, DICompileUnit *> {
  765     DICompileUnit *operator*() const;
  766     DICompileUnit *operator->() const;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
lib/Analysis/ModuleDebugInfoPrinter.cpp
   73   for (DICompileUnit *CU : Finder.compile_units()) {
lib/AsmParser/LLParser.cpp
 3847   EmissionKindField() : MDUnsignedField(0, DICompileUnit::LastEmissionKind) {}
 3854                    DICompileUnit::DebugNameTableKind::LastDebugNameTableKind) {}
 4069   auto Kind = DICompileUnit::getEmissionKind(Lex.getStrVal());
 4088   auto Kind = DICompileUnit::getNameTableKind(Lex.getStrVal());
 4658   Result = DICompileUnit::getDistinct(
lib/Bitcode/Reader/MetadataLoader.cpp
  455   std::vector<std::pair<DICompileUnit *, Metadata *>> CUSubprograms;
  501         auto *CU = cast<DICompileUnit>(CUNodes->getOperand(I));
  501         auto *CU = cast<DICompileUnit>(CUNodes->getOperand(I));
 1466     auto *CU = DICompileUnit::getDistinct(
 1466     auto *CU = DICompileUnit::getDistinct(
lib/Bitcode/Writer/BitcodeWriter.cpp
  312   void writeDICompileUnit(const DICompileUnit *N,
 1639 void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N,
lib/CodeGen/AsmPrinter/AccelTable.cpp
  559         DICompileUnit::DebugNameTableKind::Default)
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  771   const auto *CU = cast<DICompileUnit>(Node);
  771   const auto *CU = cast<DICompileUnit>(Node);
  828   const auto *CU = cast<DICompileUnit>(Node);
  828   const auto *CU = cast<DICompileUnit>(Node);
 2992     const auto *CU = cast<DICompileUnit>(Node);
 2992     const auto *CU = cast<DICompileUnit>(Node);
 3059     for (auto *Ty : cast<DICompileUnit>(Node)->getRetainedTypes()) {
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  180   if (EK == DICompileUnit::NoDebug)
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
   55 DwarfCompileUnit::DwarfCompileUnit(unsigned UID, const DICompileUnit *Node,
 1107   case DICompileUnit::DebugNameTableKind::None:
 1111   case DICompileUnit::DebugNameTableKind::GNU:
 1113   case DICompileUnit::DebugNameTableKind::Default:
 1283   return getCUNode()->getEmissionKind() == DICompileUnit::LineTablesOnly ||
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  106   DwarfCompileUnit(unsigned UID, const DICompileUnit *Node, AsmPrinter *A,
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  451 void DwarfDebug::addSubprogramNames(const DICompileUnit &CU,
  454       CU.getNameTableKind() == DICompileUnit::DebugNameTableKind::None)
  791 void DwarfDebug::finishUnitAttributes(const DICompileUnit *DIUnit,
  849 DwarfDebug::getOrCreateDwarfCompileUnit(const DICompileUnit *DIUnit) {
  978   for (DICompileUnit *CUNode : M->debug_compile_units()) {
 1147     auto *CUNode = cast<DICompileUnit>(P.first);
 1156   for (auto *CUNode : MMI->getModule()->debug_compile_units())
 1638   if (!SP || SP->getUnit()->getEmissionKind() == DICompileUnit::NoDebug)
 1784   if (SP->getUnit()->getEmissionKind() == DICompileUnit::NoDebug)
 1843       TheCU.getCUNode()->getEmissionKind() == DICompileUnit::LineTablesOnly &&
 2050                     DICompileUnit::DebugNameTableKind::GNU;
 2768     auto *CUNode = cast<DICompileUnit>(P.first);
 2858   const DICompileUnit *DIUnit = CU.getCUNode();
 2983 void DwarfDebug::addAccelNameImpl(const DICompileUnit &CU,
 2990       CU.getNameTableKind() != DICompileUnit::DebugNameTableKind::Default)
 3010 void DwarfDebug::addAccelName(const DICompileUnit &CU, StringRef Name,
 3015 void DwarfDebug::addAccelObjC(const DICompileUnit &CU, StringRef Name,
 3022 void DwarfDebug::addAccelNamespace(const DICompileUnit &CU, StringRef Name,
 3027 void DwarfDebug::addAccelType(const DICompileUnit &CU, StringRef Name,
lib/CodeGen/AsmPrinter/DwarfDebug.h
  445   void addAccelNameImpl(const DICompileUnit &CU, AccelTable<DataT> &AppleAccel,
  553   DwarfCompileUnit &getOrCreateDwarfCompileUnit(const DICompileUnit *DIUnit);
  554   void finishUnitAttributes(const DICompileUnit *DIUnit,
  719   void addSubprogramNames(const DICompileUnit &CU, const DISubprogram *SP,
  724   void addAccelName(const DICompileUnit &CU, StringRef Name, const DIE &Die);
  726   void addAccelObjC(const DICompileUnit &CU, StringRef Name, const DIE &Die);
  728   void addAccelNamespace(const DICompileUnit &CU, StringRef Name,
  731   void addAccelType(const DICompileUnit &CU, StringRef Name, const DIE &Die,
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
   91 DwarfUnit::DwarfUnit(dwarf::Tag UnitTag, const DICompileUnit *Node,
  719     if (!Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
  741   while (!isa<DICompileUnit>(Context)) {
 1415   bool IndexEnumerators = !Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
lib/CodeGen/AsmPrinter/DwarfUnit.h
   43   const DICompileUnit *CUNode;
   76   DwarfUnit(dwarf::Tag, const DICompileUnit *Node, AsmPrinter *A, DwarfDebug *DW,
   89   const DICompileUnit *getCUNode() const { return CUNode; }
lib/CodeGen/LexicalScopes.cpp
   54       DICompileUnit::NoDebug)
  146         DICompileUnit::NoDebug)
lib/CodeGen/LiveDebugValues.cpp
 1429       DICompileUnit::NoDebug)
lib/CodeGen/MachineOutliner.cpp
 1158     DICompileUnit *CU = SP->getUnit();
lib/IR/AsmWriter.cpp
 1620   void printEmissionKind(StringRef Name, DICompileUnit::DebugEmissionKind EK);
 1622                           DICompileUnit::DebugNameTableKind NTK);
 1740                                        DICompileUnit::DebugEmissionKind EK) {
 1741   Out << FS << Name << ": " << DICompileUnit::emissionKindString(EK);
 1745                                         DICompileUnit::DebugNameTableKind NTK) {
 1746   if (NTK == DICompileUnit::DebugNameTableKind::Default)
 1748   Out << FS << Name << ": " << DICompileUnit::nameTableKindString(NTK);
 1919 static void writeDICompileUnit(raw_ostream &Out, const DICompileUnit *N,
lib/IR/DIBuilder.cpp
   33 DIBuilder::DIBuilder(Module &m, bool AllowUnresolvedNodes, DICompileUnit *CU)
  132   if (!N || isa<DICompileUnit>(N))
  137 DICompileUnit *DIBuilder::createCompileUnit(
  140     DICompileUnit::DebugEmissionKind Kind, uint64_t DWOId,
  142     DICompileUnit::DebugNameTableKind NameTableKind, bool RangesBaseAddress) {
  149   CUNode = DICompileUnit::getDistinct(
lib/IR/DebugInfo.cpp
   63   for (auto *CU : M.debug_compile_units())
   76 void DebugInfoFinder::processCompileUnit(DICompileUnit *CU) {
  155   if (auto *CU = dyn_cast<DICompileUnit>(Scope)) {
  155   if (auto *CU = dyn_cast<DICompileUnit>(Scope)) {
  239 bool DebugInfoFinder::addCompileUnit(DICompileUnit *CU) {
  433     auto *Unit = cast_or_null<DICompileUnit>(map(MDS->getUnit()));
  433     auto *Unit = cast_or_null<DICompileUnit>(map(MDS->getUnit()));
  475   DICompileUnit *getReplacementCU(DICompileUnit *CU) {
  475   DICompileUnit *getReplacementCU(DICompileUnit *CU) {
  485     return DICompileUnit::getDistinct(
  488         CU->getSplitDebugFilename(), DICompileUnit::LineTablesOnly, EnumTypes,
  530       if (auto *CU = dyn_cast<DICompileUnit>(N))
  530       if (auto *CU = dyn_cast<DICompileUnit>(N))
  584             !isa<DICompileUnit>(MDN))
lib/IR/DebugInfoMetadata.cpp
  513 DICompileUnit *DICompileUnit::getImpl(
  531   return storeImpl(new (array_lengthof(Ops)) DICompileUnit(
  539 Optional<DICompileUnit::DebugEmissionKind>
  549 Optional<DICompileUnit::DebugNameTableKind>
lib/IR/Metadata.cpp
  778   static const bool value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes);
 1528     if (DICompileUnit *CU = SP->getUnit()) {
lib/IR/MetadataImpl.h
   28 template <class T> T *MDNode::storeImpl(T *N, StorageType Storage) {
   28 template <class T> T *MDNode::storeImpl(T *N, StorageType Storage) {
lib/IR/Module.cpp
  371 DICompileUnit *Module::debug_compile_units_iterator::operator*() const {
  372   return cast<DICompileUnit>(CUs->getOperand(Idx));
  374 DICompileUnit *Module::debug_compile_units_iterator::operator->() const {
  375   return cast<DICompileUnit>(CUs->getOperand(Idx));
  380          ((*this)->getEmissionKind() == DICompileUnit::NoDebug))
lib/IR/Verifier.cpp
  284   DenseMap<const DICompileUnit *, bool> HasSourceDebugInfo;
  531   void verifySourceDebugInfo(const DICompileUnit &U, const DIFile &F);
 1045 void Verifier::visitDICompileUnit(const DICompileUnit &N) {
 5097 void Verifier::verifySourceDebugInfo(const DICompileUnit &U, const DIFile &F) {
lib/Linker/IRMover.cpp
 1120     auto *CU = cast<DICompileUnit>(SrcCompileUnits->getOperand(I));
 1120     auto *CU = cast<DICompileUnit>(SrcCompileUnits->getOperand(I));
lib/Target/BPF/BTFDebug.cpp
  848   auto *Unit = SP->getUnit();
  850   if (Unit->getEmissionKind() == DICompileUnit::NoDebug) {
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  862   for (DICompileUnit *CU : M.debug_compile_units()) {
  864     case DICompileUnit::NoDebug:
  865     case DICompileUnit::DebugDirectivesOnly:
  867     case DICompileUnit::LineTablesOnly:
  868     case DICompileUnit::FullDebug:
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  174       const auto *CU = cast<DICompileUnit>(Debug->getOperand(I));
  174       const auto *CU = cast<DICompileUnit>(Debug->getOperand(I));
lib/Transforms/IPO/StripSymbols.cpp
  325   std::set<DICompileUnit *> LiveCUs;
  333   for (DICompileUnit *DIC : F.compile_units()) {
  372       for (DICompileUnit *CU : LiveCUs)
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  122   std::string mangleName(const DICompileUnit *CU, GCovFileType FileType);
  519 std::string GCOVProfiler::mangleName(const DICompileUnit *CU,
  673     auto *CU = cast<DICompileUnit>(CU_Nodes->getOperand(i));
  673     auto *CU = cast<DICompileUnit>(CU_Nodes->getOperand(i));
  989     auto *CU = cast<DICompileUnit>(CUNodes->getOperand(i));
  989     auto *CU = cast<DICompileUnit>(CUNodes->getOperand(i));
lib/Transforms/Utils/CloneFunction.cpp
  196   for (DICompileUnit *CU : DIFinder.compile_units())
  223     for (auto* Unit : DIFinder.compile_units())
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  589   llvm::DICompileUnit::DebugEmissionKind EmissionKind;
  593     EmissionKind = llvm::DICompileUnit::NoDebug;
  596     EmissionKind = llvm::DICompileUnit::LineTablesOnly;
  599     EmissionKind = llvm::DICompileUnit::DebugDirectivesOnly;
  603     EmissionKind = llvm::DICompileUnit::FullDebug;
  626           ? llvm::DICompileUnit::DebugNameTableKind::None
  884 static bool hasCXXMangling(const TagDecl *TD, llvm::DICompileUnit *TheCU) {
  919                                 llvm::DICompileUnit *TheCU) {
  937                                           llvm::DICompileUnit *TheCU) {
 2427                           Mod.getASTFile(), llvm::DICompileUnit::FullDebug,
tools/clang/lib/CodeGen/CGDebugInfo.h
   61   llvm::DICompileUnit *TheCU = nullptr;
tools/clang/lib/Frontend/CompilerInvocation.cpp
  827           ? llvm::DICompileUnit::DebugNameTableKind::GNU
  829                 ? llvm::DICompileUnit::DebugNameTableKind::Default
  830                 : llvm::DICompileUnit::DebugNameTableKind::None);
unittests/IR/MetadataTest.cpp
   93   DICompileUnit *getUnit() {
   94     return DICompileUnit::getDistinct(
   96         DICompileUnit::FullDebug, getTuple(), getTuple(), getTuple(),
   98         DICompileUnit::DebugNameTableKind::Default, false);
 1704   auto EmissionKind = DICompileUnit::FullDebug;
 1711   auto *N = DICompileUnit::getDistinct(
 1711   auto *N = DICompileUnit::getDistinct(
 1715       false, DICompileUnit::DebugNameTableKind::Default, false);
 1750   auto *TempAddress = Temp.get();
 1751   auto *Clone = MDNode::replaceWithPermanent(std::move(Temp));
 1764   auto EmissionKind = DICompileUnit::FullDebug;
 1769   auto *N = DICompileUnit::getDistinct(
 1769   auto *N = DICompileUnit::getDistinct(
 1773       DICompileUnit::DebugNameTableKind::Default, false);
 1812   DICompileUnit *Unit = getUnit();
unittests/IR/VerifierTest.cpp
  170     auto *CU = DIB.createCompileUnit(dwarf::DW_LANG_C89,
unittests/Transforms/Utils/CloningTest.cpp
  475     auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99,
  746     auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99,
  837   DICompileUnit *CU = dyn_cast<llvm::DICompileUnit>(NMD->getOperand(0));
  837   DICompileUnit *CU = dyn_cast<llvm::DICompileUnit>(NMD->getOperand(0));
usr/include/c++/7.4.0/bits/unique_ptr.h
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
utils/unittest/googletest/include/gtest/gtest-printers.h
  407                     T* p, ::std::ostream* os) {
  416     if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {