| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCELFObjectWriter.cpp | 32 unsigned Type) const override; 82 unsigned Type; in getRelocType() local 93 Type = ELF::R_PPC_REL24; in getRelocType() 96 Type = ELF::R_PPC_PLTREL24; in getRelocType() 99 Type = ELF::R_PPC_LOCAL24PC; in getRelocType() 102 Type = ELF::R_PPC64_REL24_NOTOC; in getRelocType() 108 Type = ELF::R_PPC_REL14; in getRelocType() 114 Type = ELF::R_PPC_REL16; in getRelocType() 117 Type = ELF::R_PPC_REL16_LO; in getRelocType() 120 Type = ELF::R_PPC_REL16_HI; in getRelocType() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ValueTypes.cpp | 182 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT() 188 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT() 189 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT() 190 case MVT::i2: return Type::getIntNTy(Context, 2); in getTypeForEVT() 191 case MVT::i4: return Type::getIntNTy(Context, 4); in getTypeForEVT() 192 case MVT::i8: return Type::getInt8Ty(Context); in getTypeForEVT() 193 case MVT::i16: return Type::getInt16Ty(Context); in getTypeForEVT() 194 case MVT::i32: return Type::getInt32Ty(Context); in getTypeForEVT() 195 case MVT::i64: return Type::getInt64Ty(Context); in getTypeForEVT() 197 case MVT::f16: return Type::getHalfTy(Context); in getTypeForEVT() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 40 class IntegerType : public Type { 44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() 68 return Type::getIntNTy(getContext(), 2 * getScalarSizeInBits()); in getExtendedType() 92 static bool classof(const Type *T) { in classof() 97 unsigned Type::getIntegerBitWidth() const { in getIntegerBitWidth() 103 class FunctionType : public Type { 104 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs); 111 static FunctionType *get(Type *Result, 112 ArrayRef<Type*> Params, bool isVarArg); 115 static FunctionType *get(Type *Result, bool isVarArg); [all …]
|
| H A D | Type.h | 45 class Type { 94 explicit Type(LLVMContext &C, TypeID tid) in Type() function 96 ~Type() = default; 114 Type * const *ContainedTys = nullptr; 266 bool canLosslesslyBitCastTo(Type *Ty) const; 295 bool isSized(SmallPtrSetImpl<Type*> *Visited = nullptr) const { 341 inline Type *getScalarType() const { in getScalarType() 344 return const_cast<Type *>(this); in getScalarType() 350 using subtype_iterator = Type * const *; 354 ArrayRef<Type*> subtypes() const { in subtypes() [all …]
|
| H A D | DataLayout.h | 192 Align getAlignment(Type *Ty, bool abi_or_pref) const; 405 bool isNonIntegralPointerType(Type *Ty) const { in isNonIntegralPointerType() 432 unsigned getPointerTypeSizeInBits(Type *) const; 436 unsigned getIndexTypeSizeInBits(Type *Ty) const; 438 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() 466 TypeSize getTypeSizeInBits(Type *Ty) const; 475 TypeSize getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() 487 TypeSize getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() 495 bool typeSizeEqualsStoreSize(Type *Ty) const { in typeSizeEqualsStoreSize() 507 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() [all …]
|
| H A D | Constants.h | 58 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} in ConstantData() 93 static Constant *getTrue(Type *Ty); 94 static Constant *getFalse(Type *Ty); 95 static Constant *getBool(Type *Ty, bool V); 99 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false); 115 static Constant *getSigned(Type *Ty, int64_t V); 127 static Constant *get(Type *Ty, const APInt &V); 185 static bool isValueValidForType(Type *Ty, uint64_t V); 186 static bool isValueValidForType(Type *Ty, int64_t V); 261 ConstantFP(Type *Ty, const APFloat &V); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Type.cpp | 36 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType() 56 bool Type::isIntegerTy(unsigned Bitwidth) const { in isIntegerTy() 60 bool Type::isOpaquePointerTy() const { in isOpaquePointerTy() 66 const fltSemantics &Type::getFltSemantics() const { in getFltSemantics() 79 bool Type::isIEEE() const { in isIEEE() 83 Type *Type::getFloatingPointTy(LLVMContext &C, const fltSemantics &S) { in getFloatingPointTy() 84 Type *Ty; in getFloatingPointTy() 86 Ty = Type::getHalfTy(C); in getFloatingPointTy() 88 Ty = Type::getBFloatTy(C); in getFloatingPointTy() 90 Ty = Type::getFloatTy(C); in getFloatingPointTy() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | RelocationResolver.cpp | 41 static bool supportsX86_64(uint64_t Type) { in supportsX86_64() argument 42 switch (Type) { in supportsX86_64() 57 static uint64_t resolveX86_64(uint64_t Type, uint64_t Offset, uint64_t S, in resolveX86_64() argument 59 switch (Type) { in resolveX86_64() 77 static bool supportsAArch64(uint64_t Type) { in supportsAArch64() argument 78 switch (Type) { in supportsAArch64() 90 static uint64_t resolveAArch64(uint64_t Type, uint64_t Offset, uint64_t S, in resolveAArch64() argument 92 switch (Type) { in resolveAArch64() 108 static bool supportsBPF(uint64_t Type) { in supportsBPF() argument 109 switch (Type) { in supportsBPF() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/ |
| H A D | visibility13.C | 18 template <class Type> 22 Array(const Type *ar, int sz) { init(ar,sz); } in Array() 25 virtual Type& operator[](int ix) { return ia[ix]; } 27 void init(const Type*, int); 32 template <class Type> 33 ostream& operator<<( ostream& os, Array<Type>& ar ) 39 template <class Type> 40 void Array<Type>::print(ostream& os) in print() 56 template <class Type> 57 void Array<Type>::init(const Type *array, int sz) in init() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | atomic_helpers.h | 32 typedef u8 Type; typedef 33 volatile Type ValDoNotUse; 37 typedef u16 Type; typedef 38 volatile Type ValDoNotUse; 42 typedef s32 Type; typedef 43 volatile Type ValDoNotUse; 47 typedef u32 Type; typedef 48 volatile Type ValDoNotUse; 52 typedef u64 Type; typedef 54 alignas(8) volatile Type ValDoNotUse; [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.cpp | 69 static OverloadKind getOverloadKind(Type *Ty) { in getOverloadKind() 70 Type::TypeID T = Ty->getTypeID(); in getOverloadKind() 72 case Type::VoidTyID: in getOverloadKind() 74 case Type::HalfTyID: in getOverloadKind() 76 case Type::FloatTyID: in getOverloadKind() 78 case Type::DoubleTyID: in getOverloadKind() 80 case Type::IntegerTyID: { in getOverloadKind() 99 case Type::PointerTyID: in getOverloadKind() 101 case Type::StructTyID: in getOverloadKind() 109 static std::string getTypeName(OverloadKind Kind, Type *Ty) { in getTypeName() [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/ |
| H A D | OffloadWrapper.cpp | 43 switch (M.getDataLayout().getPointerTypeSize(Type::getInt8PtrTy(C))) { in getSizeTTy() 45 return Type::getInt32Ty(C); in getSizeTTy() 47 return Type::getInt64Ty(C); in getSizeTTy() 63 EntryTy = StructType::create("__tgt_offload_entry", Type::getInt8PtrTy(C), in getEntryTy() 64 Type::getInt8PtrTy(C), getSizeTTy(M), in getEntryTy() 65 Type::getInt32Ty(C), Type::getInt32Ty(C)); in getEntryTy() 83 ImageTy = StructType::create("__tgt_device_image", Type::getInt8PtrTy(C), in getDeviceImageTy() 84 Type::getInt8PtrTy(C), getEntryPtrTy(M), in getDeviceImageTy() 103 DescTy = StructType::create("__tgt_bin_desc", Type::getInt32Ty(C), in getBinDescTy() 219 ConstantInt::get(Type::getInt32Ty(C), ImagesInits.size()), ImagesB, in createBinDesc() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | TypeNodes.td | 53 def Type : TypeNode<?, 1>; 54 def BuiltinType : TypeNode<Type>, LeafType; 55 def ComplexType : TypeNode<Type>; 56 def PointerType : TypeNode<Type>; 57 def BlockPointerType : TypeNode<Type>; 58 def ReferenceType : TypeNode<Type, 1>; 61 def MemberPointerType : TypeNode<Type>; 62 def ArrayType : TypeNode<Type, 1>; 67 def DependentSizedExtVectorType : TypeNode<Type>, AlwaysDependent; 68 def DependentAddressSpaceType : TypeNode<Type>, AlwaysDependent; [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/Utils/ |
| H A D | WebAssemblyTypeUtilities.cpp | 24 std::optional<wasm::ValType> WebAssembly::parseType(StringRef Type) { in parseType() argument 27 if (Type == "i32") in parseType() 29 if (Type == "i64") in parseType() 31 if (Type == "f32") in parseType() 33 if (Type == "f64") in parseType() 35 if (Type == "v128" || Type == "i8x16" || Type == "i16x8" || Type == "i32x4" || in parseType() 36 Type == "i64x2" || Type == "f32x4" || Type == "f64x2") in parseType() 38 if (Type == "funcref") in parseType() 40 if (Type == "externref") in parseType() 45 WebAssembly::BlockType WebAssembly::parseBlockType(StringRef Type) { in parseBlockType() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVType.cpp | 252 for (LVType *Type : *Types) { in getParameters() 253 if (!Type->getIsTemplateParam()) in getParameters() 257 if (Type->getIsKindType()) in getParameters() 258 Type = Type->getTypeAsType(); in getParameters() 260 if (Type->getIsKindScope()) { in getParameters() 261 Scope = Type->getTypeAsScope(); in getParameters() 262 Type = nullptr; in getParameters() 265 Type ? TypesParam->push_back(Type) : ScopesParam->push_back(Scope); in getParameters() 267 TypesParam->push_back(Type); in getParameters() 271 bool LVType::equals(const LVType *Type) const { in equals() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_atomic.h | 30 typedef u8 Type; typedef 31 volatile Type val_dont_use; 35 typedef u16 Type; typedef 36 volatile Type val_dont_use; 40 typedef s32 Type; typedef 41 volatile Type val_dont_use; 45 typedef u32 Type; typedef 46 volatile Type val_dont_use; 50 typedef u64 Type; typedef 52 volatile ALIGNED(8) Type val_dont_use; [all …]
|
| H A D | sanitizer_atomic_clang_mips.h | 40 inline atomic_uint64_t::Type atomic_fetch_add(volatile atomic_uint64_t *ptr, in atomic_fetch_add() 41 atomic_uint64_t::Type val, in atomic_fetch_add() 47 atomic_uint64_t::Type ret; in atomic_fetch_add() 50 ret = *(const_cast<atomic_uint64_t::Type volatile *>(&ptr->val_dont_use)); in atomic_fetch_add() 58 inline atomic_uint64_t::Type atomic_fetch_sub(volatile atomic_uint64_t *ptr, in atomic_fetch_sub() 59 atomic_uint64_t::Type val, in atomic_fetch_sub() 66 atomic_uint64_t::Type *cmp, in atomic_compare_exchange_strong() 67 atomic_uint64_t::Type xchg, in atomic_compare_exchange_strong() 73 typedef atomic_uint64_t::Type Type; in atomic_compare_exchange_strong() typedef 74 Type cmpv = *cmp; in atomic_compare_exchange_strong() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackDocument.h | 33 Type Kind; 70 bool isMap() const { return getKind() == Type::Map; } in isMap() 71 bool isArray() const { return getKind() == Type::Array; } in isArray() 73 bool isString() const { return getKind() == Type::String; } in isString() 78 bool isEmpty() const { return !KindAndDoc || getKind() == Type::Empty; } in isEmpty() 79 Type getKind() const { return KindAndDoc->Kind; } in getKind() 83 assert(getKind() == Type::Int); in getInt() 88 assert(getKind() == Type::UInt); in getUInt() 93 assert(getKind() == Type::Boolean); in getBool() 98 assert(getKind() == Type::Float); in getFloat() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/BinaryFormat/ |
| H A D | MsgPackReader.cpp | 37 Obj.Kind = Type::Nil; in read() 40 Obj.Kind = Type::Boolean; in read() 44 Obj.Kind = Type::Boolean; in read() 48 Obj.Kind = Type::Int; in read() 51 Obj.Kind = Type::Int; in read() 54 Obj.Kind = Type::Int; in read() 57 Obj.Kind = Type::Int; in read() 60 Obj.Kind = Type::UInt; in read() 63 Obj.Kind = Type::UInt; in read() 66 Obj.Kind = Type::UInt; in read() [all …]
|
| H A D | MsgPackDocumentYAML.cpp | 39 case msgpack::Type::String: in toString() 42 case msgpack::Type::Nil: in toString() 44 case msgpack::Type::Boolean: in toString() 47 case msgpack::Type::Int: in toString() 50 case msgpack::Type::UInt: in toString() 56 case msgpack::Type::Float: in toString() 111 if (getKind() == msgpack::Type::Nil) in getYAMLTag() 121 if (N.getKind() == msgpack::Type::UInt && getKind() == msgpack::Type::Int) in getYAMLTag() 123 if (N.getKind() == msgpack::Type::Int && getKind() == msgpack::Type::UInt) in getYAMLTag() 127 case msgpack::Type::String: in getYAMLTag() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ELFObjectWriter.cpp | 91 static void checkIs32(MCContext &Ctx, SMLoc Loc, X86_64RelType Type) { in checkIs32() argument 92 if (Type != RT64_32) in checkIs32() 97 static void checkIs64(MCContext &Ctx, SMLoc Loc, X86_64RelType Type) { in checkIs64() argument 98 if (Type != RT64_64) in checkIs64() 105 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument 112 switch (Type) { in getRelocType64() 130 switch (Type) { in getRelocType64() 143 assert(Type == RT64_64); in getRelocType64() 148 switch (Type) { in getRelocType64() 162 switch (Type) { in getRelocType64() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfo.h | 64 class Type; variable 121 Type *RetTy = nullptr; 123 SmallVector<Type *, 4> ParamTys; 137 Intrinsic::ID Id, Type *RTy, ArrayRef<Type *> Tys, 141 IntrinsicCostAttributes(Intrinsic::ID Id, Type *RTy, 145 Intrinsic::ID Id, Type *RTy, ArrayRef<const Value *> Args, 146 ArrayRef<Type *> Tys, FastMathFlags Flags = FastMathFlags(), 152 Type *getReturnType() const { return RetTy; } in getReturnType() 156 const SmallVectorImpl<Type *> &getArgTypes() const { return ParamTys; } in getArgTypes() 250 getGEPCost(Type *PointeeType, const Value *Ptr, [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Type.cpp | 74 const Type* ty = getTypePtr(); in getBaseTypeIdentifier() 82 else if (ty->getTypeClass() == Type::Typedef) in getBaseTypeIdentifier() 126 : Type(tc, can, in ArrayType() 227 : Type(DependentVector, CanonType, in DependentVectorType() 248 : Type(DependentSizedExtVector, can, in DependentSizedExtVectorType() 269 : Type(DependentAddressSpace, can, in DependentAddressSpaceType() 287 : Type(tc, canonType, in MatrixType() 336 : Type(tc, canonType, vecType->getDependence()), ElementType(vecType) { in VectorType() 342 : Type(BitInt, QualType{}, TypeDependence::None), IsUnsigned(IsUnsigned), in BitIntType() 347 : Type(DependentBitInt, QualType{}, in DependentBitIntType() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | MachineInstr.h | 819 bool hasProperty(unsigned MCFlag, QueryType Type = AnyInBundle) const { 823 if (Type == IgnoreBundle || !isBundled() || isBundledWithPred()) 827 return hasPropertyInBundle(1ULL << MCFlag, Type); 832 bool isPreISelOpcode(QueryType Type = IgnoreBundle) const { 833 return hasProperty(MCID::PreISelOpcode, Type); 840 bool isVariadic(QueryType Type = IgnoreBundle) const { 841 return hasProperty(MCID::Variadic, Type); 846 bool hasOptionalDef(QueryType Type = IgnoreBundle) const { 847 return hasProperty(MCID::HasOptionalDef, Type); 852 bool isPseudo(QueryType Type = IgnoreBundle) const { [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.h | 132 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, 142 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, 146 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, 151 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val, 158 InstructionCost getReplicationShuffleCost(Type *EltTy, int ReplicationFactor, 163 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, 167 InstructionCost getMaskedMemoryOpCost(unsigned Opcode, Type *Src, 170 InstructionCost getGatherScatterOpCost(unsigned Opcode, Type *DataTy, 175 InstructionCost getAddressComputationCost(Type *PtrTy, ScalarEvolution *SE, 199 InstructionCost getMinMaxCost(Type *Ty, Type *CondTy, bool IsUnsigned); [all …]
|