Home
last modified time | relevance | path

Searched refs:Val (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DTinyPtrVector.h41 PtrUnion Val;
47 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector()
51 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector()
52 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector()
53 Val = new VecTy(*V); in TinyPtrVector()
66 if (Val.template is<EltTy>()) {
68 Val = RHS.front();
70 Val = new VecTy(*RHS.Val.template get<VecTy*>());
75 if (RHS.Val.template is<EltTy>()) {
76 Val.template get<VecTy*>()->clear();
[all …]
DDenseMapInfo.h40 uintptr_t Val = static_cast<uintptr_t>(-1);
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
42 return reinterpret_cast<T*>(Val);
46 uintptr_t Val = static_cast<uintptr_t>(-2);
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
48 return reinterpret_cast<T*>(Val);
63 static unsigned getHashValue(const char& Val) { return Val * 37U; }
74 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; }
85 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; }
96 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; }
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DITypVectorTests.cpp23 using Val = TypedInteger<struct ValT, uint32_t>; typedef in ITypVectorTest
25 using Vector = ityp::vector<Key, Val>;
42 ASSERT_EQ(vec[i], Val(0)); in TEST_F()
48 Vector vec(Key(10), Val(7)); in TEST_F()
52 ASSERT_EQ(vec[i], Val(7)); in TEST_F()
58 Vector vec = {Val(2), Val(8), Val(1)}; in TEST_F()
60 ASSERT_EQ(vec[Key(0)], Val(2)); in TEST_F()
61 ASSERT_EQ(vec[Key(1)], Val(8)); in TEST_F()
62 ASSERT_EQ(vec[Key(2)], Val(1)); in TEST_F()
70 Vector rhs = {Val(2), Val(8), Val(1)}; in TEST_F()
[all …]
DITypArrayTests.cpp23 using Val = TypedInteger<struct ValT, uint32_t>; typedef in ITypArrayTest
24 using Array = ityp::array<Key, Val, 10>;
28 static constexpr Array kArr = {Val(0), Val(1), Val(2), Val(3), Val(4),
29 Val(5), Val(6), Val(7), Val(8), Val(9)};
31 static_assert(kArr[Key(3)] == Val(3), "");
32 static_assert(kArr.at(Key(7)) == Val(7), "");
41 arr[Key(2)] = Val(5); in TEST_F()
42 arr[Key(1)] = Val(9); in TEST_F()
43 arr[Key(9)] = Val(2); in TEST_F()
45 ASSERT_EQ(arr[Key(2)], Val(5)); in TEST_F()
[all …]
DITypSpanTests.cpp25 using Val = TypedInteger<struct ValT, uint32_t>; typedef in ITypSpanTest
26 using Span = ityp::span<Key, Val>;
31 std::array<Val, 10> arr; in TEST_F()
34 span[Key(2)] = Val(5); in TEST_F()
35 span[Key(1)] = Val(9); in TEST_F()
36 span[Key(9)] = Val(2); in TEST_F()
38 ASSERT_EQ(span[Key(2)], Val(5)); in TEST_F()
39 ASSERT_EQ(span[Key(1)], Val(9)); in TEST_F()
40 ASSERT_EQ(span[Key(9)], Val(2)); in TEST_F()
46 std::array<Val, 10> arr; in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCasting.h37 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue()
47 static RetType getSimplifiedValue(const From& Val) {
48 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
57 static inline bool doit(const From &Val) {
58 return To::classof(&Val);
70 static inline bool doit(const From &Val) {
71 return isa_impl<To, From>::doit(Val);
76 static inline bool doit(const From &Val) {
77 return isa_impl<To, From>::doit(Val);
83 static inline bool doit(const std::unique_ptr<From> &Val) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCasting.h36 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue()
45 static RetType getSimplifiedValue(const From& Val) {
46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
55 static inline bool doit(const From &Val) {
56 return To::classof(&Val);
68 static inline bool doit(const From &Val) {
69 return isa_impl<To, From>::doit(Val);
74 static inline bool doit(const From &Val) {
75 return isa_impl<To, From>::doit(Val);
80 static inline bool doit(const From *Val) {
[all …]
DMathExtras.h46 static std::size_t count(T Val, ZeroBehavior) { in count()
47 if (!Val) in count()
49 if (Val & 0x1) in count()
57 if ((Val & Mask) == 0) { in count()
58 Val >>= Shift; in count()
70 static std::size_t count(T Val, ZeroBehavior ZB) {
71 if (ZB != ZB_Undefined && Val == 0)
75 return __builtin_ctz(Val);
78 _BitScanForward(&Index, Val);
86 static std::size_t count(T Val, ZeroBehavior ZB) {
[all …]
DYAMLTraits.h553 void enumCase(T &Val, const char* Str, const T ConstVal) {
554 if ( matchEnumScalar(Str, outputting() && Val == ConstVal) ) {
555 Val = ConstVal;
561 void enumCase(T &Val, const char* Str, const uint32_t ConstVal) {
562 if ( matchEnumScalar(Str, outputting() && Val == static_cast<T>(ConstVal)) ) {
563 Val = ConstVal;
568 void enumFallback(T &Val) {
572 FBT Res = static_cast<typename FBT::BaseType>(Val);
574 Val = static_cast<T>(static_cast<typename FBT::BaseType>(Res));
579 void bitSetCase(T &Val, const char* Str, const T ConstVal) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/Disassembler/
DAMDGPUDisassembler.h61 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const;
62 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const;
73 MCOperand decodeOperand_VGPR_32(unsigned Val) const;
74 MCOperand decodeOperand_VRegOrLds_32(unsigned Val) const;
76 MCOperand decodeOperand_VS_32(unsigned Val) const;
77 MCOperand decodeOperand_VS_64(unsigned Val) const;
78 MCOperand decodeOperand_VS_128(unsigned Val) const;
79 MCOperand decodeOperand_VSrc16(unsigned Val) const;
80 MCOperand decodeOperand_VSrcV216(unsigned Val) const;
82 MCOperand decodeOperand_VReg_64(unsigned Val) const;
[all …]
DAMDGPUDisassembler.cpp104 static DecodeStatus decodeBoolReg(MCInst &Inst, unsigned Val, in decodeBoolReg() argument
107 return addOperand(Inst, DAsm->decodeBoolReg(Val)); in decodeBoolReg()
615 unsigned Val) const { in createRegOperand()
617 if (Val >= RegCl.getNumRegs()) in createRegOperand()
618 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand()
619 ": unknown register " + Twine(Val)); in createRegOperand()
620 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand()
625 unsigned Val) const { in createSRegOperand()
655 if (Val % (1 << shift)) { in createSRegOperand()
657 << ": scalar reg isn't aligned " << Val; in createSRegOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_cast_main.cpp97 void testValue(FromType Val, size_t &TotalTests, size_t &Passes, in testValue() argument
99 COMPARE(cast, FromType, bool, Val, FromTypeString); in testValue()
100 COMPARE(cast, FromType, uint8_t, Val, FromTypeString); in testValue()
101 COMPARE(cast, FromType, myint8_t, Val, FromTypeString); in testValue()
102 COMPARE(cast, FromType, uint16_t, Val, FromTypeString); in testValue()
103 COMPARE(cast, FromType, int16_t, Val, FromTypeString); in testValue()
104 COMPARE(cast, FromType, uint32_t, Val, FromTypeString); in testValue()
105 COMPARE(cast, FromType, int32_t, Val, FromTypeString); in testValue()
106 COMPARE(cast, FromType, uint64, Val, FromTypeString); in testValue()
107 COMPARE(cast, FromType, int64, Val, FromTypeString); in testValue()
[all …]
/third_party/node/deps/v8/third_party/wasm-api/
Dwasm.hh408 class Val { class
418 Val(ValKind kind, impl impl) : kind_(kind), impl_(impl) {} in Val() function in wasm::Val
421 Val() : kind_(ANYREF) { impl_.ref = nullptr; } in Val() function in wasm::Val
422 Val(int32_t i) : kind_(I32) { impl_.i32 = i; } in Val() function in wasm::Val
423 Val(int64_t i) : kind_(I64) { impl_.i64 = i; } in Val() function in wasm::Val
424 Val(float32_t z) : kind_(F32) { impl_.f32 = z; } in Val() function in wasm::Val
425 Val(float64_t z) : kind_(F64) { impl_.f64 = z; } in Val() function in wasm::Val
426 Val(own<Ref>&& r) : kind_(ANYREF) { impl_.ref = r.release(); } in Val() function in wasm::Val
428 Val(Val&& that) : kind_(that.kind_), impl_(that.impl_) { in Val() function in wasm::Val
432 ~Val() { in ~Val()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DPointerUnion.h93 ValTy Val;
107 : Val(const_cast<void *>(
110 : Val(const_cast<void *>(PointerLikeTypeTraits<PT2>::getAsVoidPointer(V)),
118 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer());
129 return static_cast<int>(Val.getInt()) == TyNo;
137 return PointerLikeTypeTraits<T>::getFromVoidPointer(Val.getPointer());
159 get<PT1>() == Val.getPointer() &&
161 return (PT1 *)Val.getAddrOfPointer();
166 Val.initWithPointer(nullptr);
173 Val.initWithPointer(
[all …]
DDenseMapInfo.h37 uintptr_t Val = static_cast<uintptr_t>(-1);
38 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
39 return reinterpret_cast<T*>(Val);
42 uintptr_t Val = static_cast<uintptr_t>(-2);
43 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
44 return reinterpret_cast<T*>(Val);
57 static unsigned getHashValue(const char& Val) { return Val * 37U; }
67 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; }
77 static unsigned getHashValue(const unsigned long& Val) {
78 return (unsigned)(Val * 37UL);
[all …]
/third_party/node/deps/v8/third_party/wasm-api/example/
Dtable.cc12 const wasm::Val args[], wasm::Val results[] in neg_callback()
15 results[0] = wasm::Val(-args[0].i32()); in neg_callback()
52 const wasm::Func* func, wasm::Val&& arg1, wasm::Val&& arg2 in call()
53 ) -> wasm::Val { in call()
54 wasm::Val args[2] = {std::move(arg1), std::move(arg2)}; in call()
55 wasm::Val results[1]; in call()
63 void check_trap(const wasm::Func* func, wasm::Val&& arg1, wasm::Val&& arg2) { in check_trap()
64 wasm::Val args[2] = {std::move(arg1), std::move(arg2)}; in check_trap()
65 wasm::Val results[1]; in check_trap()
134 check_trap(call_indirect, wasm::Val::i32(0), wasm::Val::i32(0)); in run()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DYAMLTraits.cpp852 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument
853 Out << (Val ? "true" : "false"); in output()
856 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument
858 Val = true; in input()
861 Val = false; in input()
867 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument
869 Out << Val; in output()
873 StringRef &Val) { in input() argument
874 Val = Scalar; in input()
878 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSymbolELF.cpp43 unsigned Val; in setBinding() local
48 Val = 0; in setBinding()
51 Val = 1; in setBinding()
54 Val = 2; in setBinding()
57 Val = 3; in setBinding()
61 setFlags(OtherFlags | (Val << ELF_STB_Shift)); in setBinding()
66 uint32_t Val = (Flags >> ELF_STB_Shift) & 3; in getBinding() local
67 switch (Val) { in getBinding()
93 unsigned Val; in setType() local
98 Val = 0; in setType()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local
30 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicCmpXchgInst()
32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
46 Value *Val = RMWI->getValOperand(); in LowerAtomicRMWInst() local
48 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicRMWInst()
54 Res = Val; in LowerAtomicRMWInst()
57 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst()
60 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst()
63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.h61 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument
62 if (!Val) in isRunOfOnes()
65 if (isShiftedMask_32(Val)) { in isRunOfOnes()
67 MB = countLeadingZeros(Val); in isRunOfOnes()
69 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes()
72 Val = ~Val; // invert mask in isRunOfOnes()
73 if (isShiftedMask_32(Val)) { in isRunOfOnes()
75 ME = countLeadingZeros(Val) - 1; in isRunOfOnes()
77 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
85 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { in isRunOfOnes64() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DValue.h415 #define HANDLE_VALUE(Name) Name##Val,
419 #define HANDLE_CONSTANT_MARKER(Marker, Constant) Marker = Constant##Val,
624 if (Val) removeFromList(); in set()
625 Val = V; in set()
635 set(RHS.Val);
710 static inline bool doit(const Value &Val) {
711 return Val.getValueID() >= Value::ConstantFirstVal &&
712 Val.getValueID() <= Value::ConstantLastVal;
717 static inline bool doit(const Value &Val) {
718 return Val.getValueID() >= Value::ConstantDataFirstVal &&
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
DSIMCCodeEmitter.cpp108 static uint32_t getLit16Encoding(uint16_t Val, const MCSubtargetInfo &STI) { in getLit16Encoding() argument
109 uint16_t IntImm = getIntInlineImmEncoding(static_cast<int16_t>(Val)); in getLit16Encoding()
113 if (Val == 0x3800) // 0.5 in getLit16Encoding()
116 if (Val == 0xB800) // -0.5 in getLit16Encoding()
119 if (Val == 0x3C00) // 1.0 in getLit16Encoding()
122 if (Val == 0xBC00) // -1.0 in getLit16Encoding()
125 if (Val == 0x4000) // 2.0 in getLit16Encoding()
128 if (Val == 0xC000) // -2.0 in getLit16Encoding()
131 if (Val == 0x4400) // 4.0 in getLit16Encoding()
134 if (Val == 0xC400) // -4.0 in getLit16Encoding()
[all …]
/third_party/typescript/tests/baselines/reference/
DcontrolFlowDestructuringLoop.types10 type Val = NumVal | StrVal;
11 >Val : NumVal | StrVal
13 function isNumVal(x: Val): x is NumVal {
14 >isNumVal : (x: Val) => x is NumVal
15 >x : Val
21 >x : Val
26 function foo(things: Val[]): void {
27 >foo : (things: Val[]) => void
28 >things : Val[]
31 >thing : Val
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DValue.h466 #define HANDLE_VALUE(Name) Name##Val,
470 #define HANDLE_CONSTANT_MARKER(Marker, Constant) Marker = Constant##Val,
731 if (Val) removeFromList(); in set()
732 Val = V; in set()
742 set(RHS.Val);
817 static inline bool doit(const Value &Val) {
819 return Val.getValueID() <= Value::ConstantLastVal;
824 static inline bool doit(const Value &Val) {
825 return Val.getValueID() >= Value::ConstantDataFirstVal &&
826 Val.getValueID() <= Value::ConstantDataLastVal;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DModule.cpp279 uint64_t Val = Behavior->getLimitedValue(); in isValidModFlagBehavior() local
280 if (Val >= ModFlagBehaviorFirstVal && Val <= ModFlagBehaviorLastVal) { in isValidModFlagBehavior()
281 MFB = static_cast<ModFlagBehavior>(Val); in isValidModFlagBehavior()
302 Metadata *Val = Flag->getOperand(2); in getModuleFlagsMetadata() local
303 Flags.push_back(ModuleFlagEntry(MFB, Key, Val)); in getModuleFlagsMetadata()
315 return MFE.Val; in getModuleFlag()
338 Metadata *Val) { in addModuleFlag() argument
342 MDString::get(Context, Key), Val}; in addModuleFlag()
346 Constant *Val) { in addModuleFlag() argument
347 addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val)); in addModuleFlag()
[all …]

12345678910>>...28