|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/IR/Metadata.def 94 HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DISubroutineType)
References
examples/Kaleidoscope/Chapter9/toy.cpp 842 static DISubroutineType *CreateFunctionType(unsigned NumArgs, DIFile *Unit) {
include/llvm/ADT/DenseMapInfo.h 39 static inline T* getEmptyKey() {
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
45 static inline T* getTombstoneKey() {
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
51 static unsigned getHashValue(const T *PtrVal) {
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/IR/DIBuilder.h 516 DISubroutineType *
663 DIFile *File, unsigned LineNo, DISubroutineType *Ty,
674 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine,
701 DIFile *File, unsigned LineNo, DISubroutineType *Ty,
include/llvm/IR/DebugInfoMetadata.h 1076 static DISubroutineType *getImpl(LLVMContext &Context, DIFlags Flags,
1082 static DISubroutineType *getImpl(LLVMContext &Context, DIFlags Flags,
1663 DISubroutineType *Type, unsigned ScopeLine, DIType *ContainingType,
1789 DISubroutineType *getType() const {
1790 return cast_or_null<DISubroutineType>(getRawType());
include/llvm/IR/Metadata.h 982 static typename std::enable_if<std::is_base_of<MDNode, T>::value, T *>::type
982 static typename std::enable_if<std::is_base_of<MDNode, T>::value, T *>::type
983 replaceWithUniqued(std::unique_ptr<T, TempMDNodeDeleter> N) {
984 return cast<T>(N.release()->replaceWithUniquedImpl());
1042 static void dispatchRecalculateHash(NodeTy *N, std::true_type) {
1046 static void dispatchRecalculateHash(NodeTy *, std::false_type) {}
1048 static void dispatchResetHash(NodeTy *N, std::true_type) {
1052 static void dispatchResetHash(NodeTy *, std::false_type) {}
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
77 return isa_impl<To, From>::doit(Val);
104 static inline bool doit(const From *Val) {
106 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 };
lib/Bitcode/Writer/BitcodeWriter.cpp 307 void writeDISubroutineType(const DISubroutineType *N,
1604 const DISubroutineType *N, SmallVectorImpl<uint64_t> &Record,
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 411 getFunctionOptions(const DISubroutineType *Ty,
1519 return lowerTypeMemberFunction(cast<DISubroutineType>(Ty), ClassTy,
1523 return lowerTypeFunction(cast<DISubroutineType>(Ty));
1774 bool IsPMF = isa<DISubroutineType>(Ty->getBaseType());
1857 TypeIndex CodeViewDebug::lowerTypeFunction(const DISubroutineType *Ty) {
1886 TypeIndex CodeViewDebug::lowerTypeMemberFunction(const DISubroutineType *Ty,
2477 const DISubroutineType *SubroutineTy) {
lib/CodeGen/AsmPrinter/CodeViewDebug.h 382 const DISubroutineType *SubroutineTy);
408 codeview::TypeIndex lowerTypeFunction(const DISubroutineType *Ty);
411 const DISubroutineType *Ty, const DIType *ClassTy, int ThisAdjustment,
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 658 else if (auto *STy = dyn_cast<DISubroutineType>(Ty))
840 void DwarfUnit::constructTypeDIE(DIE &Buffer, const DISubroutineType *CTy) {
842 auto Elements = cast<DISubroutineType>(CTy)->getTypeArray();
1229 if (const DISubroutineType *SPTy = SP->getType()) {
lib/CodeGen/AsmPrinter/DwarfUnit.h 311 void constructTypeDIE(DIE &Buffer, const DISubroutineType *CTy);
lib/IR/AsmWriter.cpp 1891 static void writeDISubroutineType(raw_ostream &Out, const DISubroutineType *N,
lib/IR/DIBuilder.cpp 497 DISubroutineType *DIBuilder::createSubroutineType(DITypeRefArray ParameterTypes,
500 return DISubroutineType::get(VMContext, Flags, CC, ParameterTypes);
753 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine,
772 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine,
787 unsigned LineNo, DISubroutineType *Ty, unsigned VIndex, int ThisAdjustment,
lib/IR/DebugInfo.cpp 128 if (auto *ST = dyn_cast<DISubroutineType>(DT)) {
128 if (auto *ST = dyn_cast<DISubroutineType>(DT)) {
406 : EmptySubroutineType(DISubroutineType::get(C, DINode::FlagZero, 0,
430 auto *Type = cast_or_null<DISubroutineType>(map(MDS->getType()));
430 auto *Type = cast_or_null<DISubroutineType>(map(MDS->getType()));
528 if (isa<DISubroutineType>(N))
709 template <typename DIT> DIT *unwrapDI(LLVMMetadataRef Ref) {
809 unwrapDI<DIFile>(File), LineNo, unwrapDI<DISubroutineType>(Ty), ScopeLine,
lib/IR/DebugInfoMetadata.cpp 467 DISubroutineType *DISubroutineType::getImpl(LLVMContext &Context, DIFlags Flags,
lib/IR/LLVMContextImpl.h 249 using KeyTy = MDNodeKeyImpl<NodeTy>;
251 static bool isSubsetEqual(const KeyTy &LHS, const NodeTy *RHS) {
255 static bool isSubsetEqual(const NodeTy *LHS, const NodeTy *RHS) {
255 static bool isSubsetEqual(const NodeTy *LHS, const NodeTy *RHS) {
568 MDNodeKeyImpl(const DISubroutineType *N)
571 bool isKeyOf(const DISubroutineType *RHS) const {
1139 using KeyTy = MDNodeKeyImpl<NodeTy>;
1140 using SubsetEqualTy = MDNodeSubsetEqualImpl<NodeTy>;
1142 static inline NodeTy *getEmptyKey() {
1143 return DenseMapInfo<NodeTy *>::getEmptyKey();
1146 static inline NodeTy *getTombstoneKey() {
1147 return DenseMapInfo<NodeTy *>::getTombstoneKey();
1152 static unsigned getHashValue(const NodeTy *N) {
1156 static bool isEqual(const KeyTy &LHS, const NodeTy *RHS) {
1162 static bool isEqual(const NodeTy *LHS, const NodeTy *RHS) {
1162 static bool isEqual(const NodeTy *LHS, const NodeTy *RHS) {
lib/IR/Metadata.cpp 761 static T *uniquifyImpl(T *N, DenseSet<T *, InfoT> &Store) {
761 static T *uniquifyImpl(T *N, DenseSet<T *, InfoT> &Store) {
761 static T *uniquifyImpl(T *N, DenseSet<T *, InfoT> &Store) {
762 if (T *U = getUniqued(Store, N))
778 static const bool value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes);
lib/IR/MetadataImpl.h 22 static T *getUniqued(DenseSet<T *, InfoT> &Store,
22 static T *getUniqued(DenseSet<T *, InfoT> &Store,
42 T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) {
42 T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) {
lib/IR/Verifier.cpp 1012 void Verifier::visitDISubroutineType(const DISubroutineType &N) {
lib/Target/BPF/BTFDebug.cpp 270 const DISubroutineType *STy, uint32_t VLen,
422 const DISubroutineType *STy, bool ForSubprog,
607 else if (const auto *STy = dyn_cast<DISubroutineType>(Ty))
607 else if (const auto *STy = dyn_cast<DISubroutineType>(Ty))
lib/Target/BPF/BTFDebug.h 135 const DISubroutineType *STy;
140 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams,
270 const DISubroutineType *STy, bool ForSubprog,
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp 1464 llvm::DISubroutineType *
1469 return cast_or_null<llvm::DISubroutineType>(
1474 llvm::DISubroutineType *CGDebugInfo::getOrCreateInstanceMethodType(
1478 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit))
1544 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit);
3465 llvm::DISubroutineType *CGDebugInfo::getOrCreateFunctionType(const Decl *D,
3532 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F));
tools/clang/lib/CodeGen/CGDebugInfo.h 204 llvm::DISubroutineType *getOrCreateMethodType(const CXXMethodDecl *Method,
206 llvm::DISubroutineType *
209 llvm::DISubroutineType *
unittests/IR/MetadataTest.cpp 81 DISubroutineType *getSubroutineType() {
82 return DISubroutineType::getDistinct(Context, DINode::FlagZero, 0,
1273 DISubroutineType::getDistinct(Context, DINode::FlagZero, 0, Types);
1280 DISubroutineType::getTemporary(Context, DINode::FlagZero, 0, Types);
1623 auto *N = DISubroutineType::get(Context, Flags, 0, TypeArray);
1623 auto *N = DISubroutineType::get(Context, Flags, 0, TypeArray);
1633 auto *Fast = DISubroutineType::get(
1633 auto *Fast = DISubroutineType::get(
1635 auto *Std = DISubroutineType::get(Context, Flags,
1635 auto *Std = DISubroutineType::get(Context, Flags,
1798 DISubroutineType *Type = getSubroutineType();
unittests/Transforms/Utils/CloningTest.cpp 473 DISubroutineType *FuncType =
745 DISubroutineType *DFuncType = DBuilder.createSubroutineType(ParamTypes);
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>
1983 { typedef _Up type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {