Home
last modified time | relevance | path

Searched refs:Type (Results 1 – 25 of 6301) sorted by relevance

12345678910>>...253

/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dtoken.cc22 std::string Token::TypeToName(Type type) { in TypeToName()
24 case Token::Type::kError: in TypeToName()
26 case Token::Type::kEOF: in TypeToName()
28 case Token::Type::kIdentifier: in TypeToName()
30 case Token::Type::kFloatLiteral: in TypeToName()
32 case Token::Type::kSintLiteral: in TypeToName()
34 case Token::Type::kUintLiteral: in TypeToName()
36 case Token::Type::kUninitialized: in TypeToName()
39 case Token::Type::kAnd: in TypeToName()
41 case Token::Type::kAndAnd: in TypeToName()
[all …]
Dlexer_test.cc123 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
146 EXPECT_TRUE(t.Is(Token::Type::kFloatLiteral)); in TEST_P()
224 EXPECT_FALSE(t.Is(Token::Type::kFloatLiteral)); in TEST_P()
327 EXPECT_TRUE(t.Is(Token::Type::kSintLiteral)); in TEST_P()
350 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
359 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
369 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
378 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
399 EXPECT_TRUE(t.Is(Token::Type::kUintLiteral)); in TEST_P()
425 ASSERT_TRUE(t.Is(Token::Type::kError)); in TEST_F()
[all …]
Dlexer.cc99 return {Token::Type::kError, begin_source(), "invalid character found"}; in next()
167 return {Token::Type::kEOF, begin_source()}; in skip_whitespace_and_comments()
218 return {Token::Type::kError, source, "unterminated block comment"}; in skip_comment()
270 return {Token::Type::kError, source, in try_float()
300 return {Token::Type::kError, source, in try_float()
305 return {Token::Type::kError, source, in try_float()
309 return {Token::Type::kError, source, in try_float()
439 return {Token::Type::kError, source, in try_hex_float()
469 return {Token::Type::kError, source, in try_hex_float()
509 return {Token::Type::kError, source, in try_hex_float()
[all …]
/third_party/node/deps/v8/src/compiler/
Doperation-typer.cc23 infinity_ = Type::Constant(V8_INFINITY, zone); in OperationTyper()
24 minus_infinity_ = Type::Constant(-V8_INFINITY, zone); in OperationTyper()
25 Type truncating_to_zero = Type::MinusZeroOrNaN(); in OperationTyper()
26 DCHECK(!truncating_to_zero.Maybe(Type::Integral32())); in OperationTyper()
29 Type::Constant(broker, factory->empty_string(), zone); in OperationTyper()
30 singleton_NaN_string_ = Type::Constant(broker, factory->NaN_string(), zone); in OperationTyper()
31 singleton_zero_string_ = Type::Constant(broker, factory->zero_string(), zone); in OperationTyper()
32 singleton_false_ = Type::Constant(broker, factory->false_value(), zone); in OperationTyper()
33 singleton_true_ = Type::Constant(broker, factory->true_value(), zone); in OperationTyper()
34 singleton_the_hole_ = Type::Hole(); in OperationTyper()
[all …]
Dtype-cache.h29 Type const kInt8 = CreateRange<int8_t>();
30 Type const kUint8 = CreateRange<uint8_t>();
31 Type const kUint8Clamped = kUint8;
32 Type const kUint8OrMinusZeroOrNaN =
33 Type::Union(kUint8, Type::MinusZeroOrNaN(), zone());
34 Type const kInt16 = CreateRange<int16_t>();
35 Type const kUint16 = CreateRange<uint16_t>();
36 Type const kUnsigned31 = Type::Unsigned31();
37 Type const kInt32 = Type::Signed32();
38 Type const kUint32 = Type::Unsigned32();
[all …]
Dtyper.cc73 Type TypeNode(Node* node) { in TypeNode()
77 return Type##x(Operand(node, 0)); in TypeNode()
86 return Type##x(Operand(node, 0), Operand(node, 1)); in TypeNode()
95 return Type##x(node); in TypeNode()
134 Type TypeConstant(Handle<Object> value);
144 #define DECLARE_METHOD(x, ...) inline Type Type##x(Node* node);
154 #define DECLARE_METHOD(x, ...) inline Type Type##x(Type input); in DECLARE_METHOD()
158 Type TypeOrNone(Node* node) {
160 : Type::None();
163 Type Operand(Node* node, int i) { in Operand()
[all …]
Doperation-typer.h25 class Type; variable
33 Type Merge(Type left, Type right);
35 Type ToPrimitive(Type type);
36 Type ToNumber(Type type);
37 Type ToNumberConvertBigInt(Type type);
38 Type ToNumeric(Type type);
39 Type ToBoolean(Type type);
41 Type WeakenRange(Type current_range, Type previous_range);
44 #define DECLARE_METHOD(Name) Type Name(Type type);
53 #define DECLARE_METHOD(Name) Type Name(Type lhs, Type rhs);
[all …]
/third_party/skia/src/sksl/
DSkSLBuiltinTypes.h24 const std::unique_ptr<Type> fFloat;
25 const std::unique_ptr<Type> fFloat2;
26 const std::unique_ptr<Type> fFloat3;
27 const std::unique_ptr<Type> fFloat4;
29 const std::unique_ptr<Type> fHalf;
30 const std::unique_ptr<Type> fHalf2;
31 const std::unique_ptr<Type> fHalf3;
32 const std::unique_ptr<Type> fHalf4;
34 const std::unique_ptr<Type> fInt;
35 const std::unique_ptr<Type> fInt2;
[all …]
DSkSLBuiltinTypes.cpp21 : fFloat(Type::MakeScalarType( in BuiltinTypes()
22 "float", "f", Type::NumberKind::kFloat, /*priority=*/10, /*bitWidth=*/32)) in BuiltinTypes()
23 , fFloat2(Type::MakeVectorType("float2", "f2", *fFloat, /*columns=*/2)) in BuiltinTypes()
24 , fFloat3(Type::MakeVectorType("float3", "f3", *fFloat, /*columns=*/3)) in BuiltinTypes()
25 , fFloat4(Type::MakeVectorType("float4", "f4", *fFloat, /*columns=*/4)) in BuiltinTypes()
26 , fHalf(Type::MakeScalarType( in BuiltinTypes()
27 "half", "h", Type::NumberKind::kFloat, /*priority=*/9, /*bitWidth=*/16)) in BuiltinTypes()
28 , fHalf2(Type::MakeVectorType("half2", "h2", *fHalf, /*columns=*/2)) in BuiltinTypes()
29 , fHalf3(Type::MakeVectorType("half3", "h3", *fHalf, /*columns=*/3)) in BuiltinTypes()
30 , fHalf4(Type::MakeVectorType("half4", "h4", *fHalf, /*columns=*/4)) in BuiltinTypes()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
Dvector_utils.h19 template <size_t Dimension, typename Type>
34 template <size_t Dimension, typename Type>
38 using VectorN = Vector<Dimension, Type>;
42 explicit VectorBase(Type element);
51 const Type *data() const { return mData; } in data()
52 Type *data() { return mData; } in data()
56 static VectorN Load(const Type *source);
57 static void Store(const VectorN &source, Type *destination);
60 Type &operator[](size_t i) { return mData[i]; }
61 const Type &operator[](size_t i) const { return mData[i]; }
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DPipeline.cpp33 case Type::VertexIn: in uses()
43 case Type::VertexOut: in uses()
59 case Type::FragmentIn: in uses()
73 case Type::FragmentOut: in uses()
86 case Type::UserUniforms: in uses()
95 case Type::NonConstantGlobals: in uses()
104 case Type::InvocationVertexGlobals: in uses()
113 case Type::InvocationFragmentGlobals: in uses()
124 case Type::UniformBuffer: in uses()
132 case Type::AngleUniforms: in uses()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCELFObjectWriter.cpp32 unsigned Type) const override;
79 unsigned Type; in getRelocType() local
89 Type = ELF::R_PPC_REL24; in getRelocType()
92 Type = ELF::R_PPC_PLTREL24; in getRelocType()
95 Type = ELF::R_PPC_LOCAL24PC; in getRelocType()
101 Type = ELF::R_PPC_REL14; in getRelocType()
107 Type = ELF::R_PPC_REL16; in getRelocType()
110 Type = ELF::R_PPC_REL16_LO; in getRelocType()
113 Type = ELF::R_PPC_REL16_HI; in getRelocType()
116 Type = ELF::R_PPC_REL16_HA; in getRelocType()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DValueTypes.cpp140 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
145 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT()
146 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT()
147 case MVT::i8: return Type::getInt8Ty(Context); in getTypeForEVT()
148 case MVT::i16: return Type::getInt16Ty(Context); in getTypeForEVT()
149 case MVT::i32: return Type::getInt32Ty(Context); in getTypeForEVT()
150 case MVT::i64: return Type::getInt64Ty(Context); in getTypeForEVT()
152 case MVT::f16: return Type::getHalfTy(Context); in getTypeForEVT()
153 case MVT::f32: return Type::getFloatTy(Context); in getTypeForEVT()
154 case MVT::f64: return Type::getDoubleTy(Context); in getTypeForEVT()
[all …]
/third_party/protobuf/src/google/protobuf/
Dmap_type_handler.h64 template <bool IsEnum, typename Type>
67 static inline void Initialize(Type& type, int default_enum_value);
70 template <typename Type>
71 class MapValueInitializer<true, Type> {
73 static inline void Initialize(Type& value, int default_enum_value) {
74 value = static_cast<Type>(default_enum_value);
78 template <typename Type>
79 class MapValueInitializer<false, Type> {
81 static inline void Initialize(Type& /* value */,
85 template <typename Type, bool is_arena_constructable>
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-open-type.hh56 template <typename Type,
57 unsigned int Size = sizeof (Type)>
60 typedef Type type;
63 explicit constexpr IntType (Type V) : v {V} {} in IntType()
64 IntType& operator = (Type i) { v = i; return *this; } in operator =()
67 …operator typename std::conditional<std::is_signed<Type>::value, signed, unsigned>::type () const {… in operator typename std::conditional<std::is_signed<Type>::value,signed,unsigned>::type()
69 bool operator == (const IntType &o) const { return (Type) v == (Type) o.v; } in operator ==()
91 sizeof (Type) < sizeof (int))>
94 Type b = v; in cmp()
98 hb_enable_if (hb_is_convertible (Type2, Type))>
[all …]
Dhb-null.hh92 template <typename Type>
94 static Type const & get_null () in get_null()
96 static_assert (hb_null_size (Type) <= HB_NULL_POOL_SIZE, "Increase HB_NULL_POOL_SIZE."); in get_null()
97 return *reinterpret_cast<Type const *> (_hb_NullPool); in get_null()
103 typedef hb_remove_const<hb_remove_reference<QType>> Type; typedef
104 static const Type & get_null () { return Null<Type>::get_null (); } in get_null()
106 #define Null(Type) NullHelper<Type>::get_null () argument
109 #define DECLARE_NULL_NAMESPACE_BYTES(Namespace, Type) \ argument
111 extern HB_INTERNAL const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::null_size]; \
113 struct Null<Namespace::Type> { \
[all …]
/third_party/vk-gl-cts/external/amber/src/src/
Dtype_test.cc219 EXPECT_TRUE(Type::IsInt(FormatMode::kSInt)); in TEST_F()
220 EXPECT_TRUE(Type::IsInt(FormatMode::kSNorm)); in TEST_F()
221 EXPECT_TRUE(Type::IsInt(FormatMode::kSScaled)); in TEST_F()
222 EXPECT_TRUE(Type::IsInt(FormatMode::kSRGB)); in TEST_F()
223 EXPECT_TRUE(Type::IsInt(FormatMode::kUNorm)); in TEST_F()
224 EXPECT_TRUE(Type::IsInt(FormatMode::kUInt)); in TEST_F()
225 EXPECT_TRUE(Type::IsInt(FormatMode::kUScaled)); in TEST_F()
226 EXPECT_FALSE(Type::IsInt(FormatMode::kSFloat)); in TEST_F()
227 EXPECT_FALSE(Type::IsInt(FormatMode::kUFloat)); in TEST_F()
231 EXPECT_TRUE(Type::IsSignedInt(FormatMode::kSInt)); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceAssemblerX8632.h358 using TypedEmitGPR = void (AssemblerX8632::*)(Type, GPRRegister);
359 using TypedEmitAddr = void (AssemblerX8632::*)(Type, const AsmAddress &);
365 using TypedEmitGPRGPR = void (AssemblerX8632::*)(Type, GPRRegister,
367 using TypedEmitGPRAddr = void (AssemblerX8632::*)(Type, GPRRegister,
369 using TypedEmitGPRImm = void (AssemblerX8632::*)(Type, GPRRegister,
384 using TypedEmitGPRGPRImm = void (AssemblerX8632::*)(Type, GPRRegister,
394 using TypedEmitAddrGPR = void (AssemblerX8632::*)(Type, const AsmAddress &,
396 using TypedEmitAddrImm = void (AssemblerX8632::*)(Type, const AsmAddress &,
404 using TypedEmitXmmXmm = void (AssemblerX8632::*)(Type, XmmRegister,
406 using TypedEmitXmmAddr = void (AssemblerX8632::*)(Type, XmmRegister,
[all …]
DIceAssemblerX8664.h378 using TypedEmitGPR = void (AssemblerX8664::*)(Type, GPRRegister);
379 using TypedEmitAddr = void (AssemblerX8664::*)(Type, const AsmAddress &);
385 using TypedEmitGPRGPR = void (AssemblerX8664::*)(Type, GPRRegister,
387 using TypedEmitGPRAddr = void (AssemblerX8664::*)(Type, GPRRegister,
389 using TypedEmitGPRImm = void (AssemblerX8664::*)(Type, GPRRegister,
404 using TypedEmitGPRGPRImm = void (AssemblerX8664::*)(Type, GPRRegister,
414 using TypedEmitAddrGPR = void (AssemblerX8664::*)(Type, const AsmAddress &,
416 using TypedEmitAddrImm = void (AssemblerX8664::*)(Type, const AsmAddress &,
424 using TypedEmitXmmXmm = void (AssemblerX8664::*)(Type, XmmRegister,
426 using TypedEmitXmmAddr = void (AssemblerX8664::*)(Type, XmmRegister,
[all …]
/third_party/node/deps/v8/src/torque/
Dtype-oracle.h23 const Type* parent, std::string name, AbstractTypeFlags flags, in GetAbstractType()
24 std::string generated, const Type* non_constexpr_version, in GetAbstractType()
48 const Type* parent, const BitFieldStructDeclaration* decl) { in GetBitFieldStructType()
56 static ClassType* GetClassType(const Type* parent, const std::string& name, in GetClassType()
68 TypeVector argument_types, const Type* return_type) { in GetBuiltinPointerType()
70 const Type* builtin_type = self.GetBuiltinType(BUILTIN_POINTER_TYPE_STRING); in GetBuiltinPointerType()
81 static const Type* GetGenericTypeInstance(GenericType* generic_type,
97 static base::Optional<const Type*> MatchReferenceGeneric(
98 const Type* reference_type, bool* is_const = nullptr);
121 static const Type* GetReferenceType(const Type* referenced_type, in GetReferenceType()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h39 class IntegerType : public Type {
43 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType()
91 static inline bool classof(const Type *T) { in classof()
96 unsigned Type::getIntegerBitWidth() const { in getIntegerBitWidth()
102 class FunctionType : public Type {
103 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs);
110 static FunctionType *get(Type *Result,
111 ArrayRef<Type*> Params, bool isVarArg);
114 static FunctionType *get(Type *Result, bool isVarArg);
117 static bool isValidReturnType(Type *RetTy);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDerivedTypes.h40 class IntegerType : public Type {
44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType()
67 return Type::getIntNTy(getContext(), 2 * getScalarSizeInBits()); in getExtendedType()
97 static bool classof(const Type *T) { in classof()
102 unsigned Type::getIntegerBitWidth() const { in getIntegerBitWidth()
108 class FunctionType : public Type {
109 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs);
116 static FunctionType *get(Type *Result,
117 ArrayRef<Type*> Params, bool isVarArg);
120 static FunctionType *get(Type *Result, bool isVarArg);
[all …]
/third_party/skia/third_party/externals/tint/src/sem/
Dtype.cc28 TINT_INSTANTIATE_TYPEINFO(tint::sem::Type);
33 Type::Type() = default;
35 Type::Type(Type&&) = default;
37 Type::~Type() = default;
39 const Type* Type::UnwrapPtr() const { in UnwrapPtr()
47 const Type* Type::UnwrapRef() const { in UnwrapRef()
55 uint32_t Type::Size() const { in Size()
59 uint32_t Type::Align() const { in Align()
63 bool Type::IsConstructible() const { in IsConstructible()
67 bool Type::is_scalar() const { in is_scalar()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dtypes.h66 class Type {
102 Type(Kind k) : kind_(k) {} in Type() function
104 virtual ~Type() = default;
113 bool HasSameDecorations(const Type* that) const;
116 bool IsSame(const Type* that) const { in IsSame()
124 virtual bool IsSameImpl(const Type* that, IsSameCache* seen) const = 0;
140 std::unique_ptr<Type> Clone() const;
143 std::unique_ptr<Type> RemoveDecorations() const;
152 bool operator==(const Type& other) const;
159 std::unordered_set<const Type*> seen; in GetHashWords()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dtypes.h66 class Type {
102 Type(Kind k) : kind_(k) {} in Type() function
104 virtual ~Type() = default;
113 bool HasSameDecorations(const Type* that) const;
116 bool IsSame(const Type* that) const { in IsSame()
124 virtual bool IsSameImpl(const Type* that, IsSameCache* seen) const = 0;
140 std::unique_ptr<Type> Clone() const;
143 std::unique_ptr<Type> RemoveDecorations() const;
152 bool operator==(const Type& other) const;
159 std::unordered_set<const Type*> seen; in GetHashWords()
[all …]

12345678910>>...253