Home
last modified time | relevance | path

Searched refs:ValType (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRuntimeLibcallSignatures.cpp526 wasm::ValType PtrTy = in getLibcallSignature()
527 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature()
534 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
538 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
542 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
546 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
550 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
554 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
558 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
562 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
[all …]
H A DWebAssemblyRuntimeLibcallSignatures.h27 SmallVectorImpl<wasm::ValType> &Rets,
28 SmallVectorImpl<wasm::ValType> &Params);
32 SmallVectorImpl<wasm::ValType> &Rets,
33 SmallVectorImpl<wasm::ValType> &Params);
H A DWebAssemblyAsmPrinter.cpp112 case wasm::ValType::I32: in getInvokeSig()
114 case wasm::ValType::I64: in getInvokeSig()
116 case wasm::ValType::F32: in getInvokeSig()
118 case wasm::ValType::F64: in getInvokeSig()
120 case wasm::ValType::V128: in getInvokeSig()
122 case wasm::ValType::FUNCREF: in getInvokeSig()
124 case wasm::ValType::EXTERNREF: in getInvokeSig()
241 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol()
242 SmallVector<wasm::ValType, 4> Params; in getOrCreateWasmSymbol()
259 wasm::ValType AddrType = in getOrCreateWasmSymbol()
[all …]
H A DWebAssemblyMCInstLower.cpp143 SmallVector<wasm::ValType, 1> &&Returns, in lowerTypeIndexOperand() argument
144 SmallVector<wasm::ValType, 4> &&Params) const { in lowerTypeIndexOperand()
158 SmallVectorImpl<wasm::ValType> &Returns) { in getFunctionReturns()
199 SmallVector<wasm::ValType, 4> Returns; in lower()
200 SmallVector<wasm::ValType, 4> Params; in lower()
228 SmallVector<wasm::ValType, 1> Returns; in lower()
231 SmallVector<wasm::ValType, 4>()); in lower()
H A DWebAssemblyMCInstLower.h37 MCOperand lowerTypeIndexOperand(SmallVector<wasm::ValType, 1> &&,
38 SmallVector<wasm::ValType, 4> &&) const;
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyTypeUtilities.cpp28 return wasm::ValType::I32; in parseType()
30 return wasm::ValType::I64; in parseType()
32 return wasm::ValType::F32; in parseType()
34 return wasm::ValType::F64; in parseType()
37 return wasm::ValType::V128; in parseType()
128 return wasm::ValType::I32; in toValType()
130 return wasm::ValType::I64; in toValType()
132 return wasm::ValType::F32; in toValType()
134 return wasm::ValType::F64; in toValType()
154 return wasm::ValType::I32; in regClassToValType()
[all …]
H A DWebAssemblyTypeUtilities.h34 I32 = unsigned(wasm::ValType::I32),
35 I64 = unsigned(wasm::ValType::I64),
36 F32 = unsigned(wasm::ValType::F32),
37 F64 = unsigned(wasm::ValType::F64),
38 V128 = unsigned(wasm::ValType::V128),
40 Funcref = unsigned(wasm::ValType::FUNCREF),
86 inline bool isRefType(wasm::ValType Type) { in isRefType()
87 return Type == wasm::ValType::EXTERNREF || Type == wasm::ValType::FUNCREF; in isRefType()
102 const char *typeToString(wasm::ValType Type);
112 wasm::ValType toValType(MVT Type);
[all …]
/llvm-project-15.0.7/libc/utils/UnitTest/
H A DFPMatcher.cpp22 template <typename ValType, typename StreamType>
23 cpp::EnableIfType<cpp::IsFloatingPointType<ValType>::Value, void>
24 describeValue(const char *label, ValType value, StreamType &stream) { in describeValue()
27 FPBits<ValType> bits(value); in describeValue()
37 (fputil::ExponentWidth<ValType>::VALUE - 1) / 4 + 1; in describeValue()
39 (fputil::MantissaWidth<ValType>::VALUE - 1) / 4 + 1; in describeValue()
41 sizeof(typename fputil::FPBits<ValType>::UIntType) * 2; in describeValue()
44 << int_to_hex<typename fputil::FPBits<ValType>::UIntType>( in describeValue()
50 << int_to_hex<typename fputil::FPBits<ValType>::UIntType>( in describeValue()
H A DLibcTest.h43 template <typename ValType>
44 bool test(RunContext *Ctx, TestCondition Cond, ValType LHS, ValType RHS,
85 template <typename ValType,
86 cpp::EnableIfType<cpp::IsIntegral<ValType>::Value, int> = 0>
87 bool test(TestCondition Cond, ValType LHS, ValType RHS, const char *LHSStr, in test()
92 template <typename ValType,
93 cpp::EnableIfType<cpp::IsEnum<ValType>::Value, int> = 0>
94 bool test(TestCondition Cond, ValType LHS, ValType RHS, const char *LHSStr, in test()
101 typename ValType,
102 cpp::EnableIfType<cpp::IsPointerType<ValType>::Value, ValType> = nullptr>
[all …]
H A DLibcTest.cpp38 template <typename ValType>
39 cpp::EnableIfType<cpp::IsIntegral<ValType>::Value, std::string>
40 describeValue(ValType Value) { in describeValue()
75 template <typename ValType>
76 void explainDifference(ValType LHS, ValType RHS, const char *LHSStr, in explainDifference()
89 template <typename ValType>
90 bool test(RunContext *Ctx, TestCondition Cond, ValType LHS, ValType RHS, in test()
H A DFPMatcher.h23 template <typename ValType, typename StreamType>
24 cpp::EnableIfType<cpp::IsFloatingPointType<ValType>::Value, void>
25 describeValue(const char *label, ValType value, StreamType &stream);
/llvm-project-15.0.7/lld/wasm/
H A DWriterUtils.cpp21 std::string toString(ValType type) { in toString()
23 case ValType::I32: in toString()
25 case ValType::I64: in toString()
27 case ValType::F32: in toString()
29 case ValType::F64: in toString()
31 case ValType::V128: in toString()
33 case ValType::FUNCREF: in toString()
35 case ValType::EXTERNREF: in toString()
43 for (ValType type : sig.Params) { in toString()
129 for (ValType paramType : sig.Params) { in writeSig()
[all …]
H A DWriterUtils.h38 void writeValueType(raw_ostream &os, llvm::wasm::ValType type,
69 std::string toString(llvm::wasm::ValType type);
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h31 SmallVector<wasm::ValType, 8> Stack;
32 SmallVector<wasm::ValType, 16> LocalTypes;
33 SmallVector<wasm::ValType, 4> ReturnTypes;
41 bool popType(SMLoc ErrorLoc, Optional<wasm::ValType> EVT);
43 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
48 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
49 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
55 void localDecl(const SmallVector<wasm::ValType, 4> &Locals);
H A DWebAssemblyAsmTypeCheck.cpp116 wasm::ValType &Type) { in getLocal()
168 wasm::ValType &Type) { in getGlobal()
182 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in getGlobal()
196 wasm::ValType &Type) { in getTable()
228 wasm::ValType Type; in typeCheck()
256 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck()
264 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck()
269 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck()
273 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck()
289 if (popType(ErrorLoc, wasm::ValType::I32)) return true; in typeCheck()
[all …]
H A DWebAssemblyAsmParser.cpp373 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList()
473 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand()
838 Optional<wasm::ValType> ElemType = WebAssembly::parseType(ElemTypeName); in ParseDirective()
942 SmallVector<wasm::ValType, 4> Locals; in ParseDirective()
986 TOut.emitLocal(SmallVector<wasm::ValType, 0>()); in ensureLocals()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyTargetStreamer.cpp30 void WebAssemblyTargetStreamer::emitValueType(wasm::ValType Type) { in emitValueType()
42 ArrayRef<wasm::ValType> Types) { in printTypes()
54 void WebAssemblyTargetAsmStreamer::emitLocal(ArrayRef<wasm::ValType> Types) { in emitLocal()
72 static_cast<wasm::ValType>(Sym->getGlobalType().Type)); in emitGlobalType()
82 << WebAssembly::typeToString(static_cast<wasm::ValType>(Type.ElemType)); in emitTableType()
121 void WebAssemblyTargetWasmStreamer::emitLocal(ArrayRef<wasm::ValType> Types) { in emitLocal()
122 SmallVector<std::pair<wasm::ValType, uint32_t>, 4> Grouped; in emitLocal()
H A DWebAssemblyTargetStreamer.h34 virtual void emitLocal(ArrayRef<wasm::ValType> Types) = 0;
56 void emitValueType(wasm::ValType Type);
66 void emitLocal(ArrayRef<wasm::ValType> Types) override;
82 void emitLocal(ArrayRef<wasm::ValType> Types) override;
102 void emitLocal(ArrayRef<wasm::ValType>) override {} in emitLocal() argument
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantsContext.h321 using ValType = ConstantExprKeyType;
325 using ValType = InlineAsmKeyType;
329 using ValType = ConstantAggrKeyType<ConstantArray>;
333 using ValType = ConstantAggrKeyType<ConstantStruct>;
337 using ValType = ConstantAggrKeyType<ConstantVector>;
557 using ValType = typename ConstantInfo<ConstantClass>::ValType;
559 using LookupKey = std::pair<TypeClass *, ValType>;
578 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
622 ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) {
633 ConstantClass *getOrCreate(TypeClass *Ty, ValType V) {
[all …]
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DWasm.h424 enum class ValType { enum
435 SmallVector<ValType, 1> Returns;
436 SmallVector<ValType, 4> Params;
440 WasmSignature(SmallVector<ValType, 1> &&InReturns, in WasmSignature()
441 SmallVector<ValType, 4> &&InParams) in WasmSignature()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCSymbolWasm.h119 setTableType(wasm::ValType::FUNCREF); in setFunctionTable()
143 void setTableType(wasm::ValType VT) { in setTableType()
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyTIL.h532 : SExpr(COP_Literal), ValType(ValueType::getValueType<void>()), Cexpr(C) {} in Literal()
533 Literal(ValueType VT) : SExpr(COP_Literal), ValType(VT) {} in Literal()
541 ValueType valueType() const { return ValType; } in valueType()
559 const ValueType ValType;
582 switch (ValType.Base) { in traverse()
588 switch (ValType.Size) { in traverse()
590 if (ValType.Signed) in traverse()
595 if (ValType.Signed) in traverse()
600 if (ValType.Signed) in traverse()
605 if (ValType.Signed) in traverse()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGVN.cpp178 enum class ValType { enum
191 ValType Kind;
199 Res.Kind = ValType::SimpleVal; in get()
207 Res.Kind = ValType::MemIntrin; in getMI()
215 Res.Kind = ValType::LoadVal; in getLoad()
223 Res.Kind = ValType::UndefVal; in getUndef()
231 Res.Kind = ValType::SelectVal; in getSelect()
236 bool isSimpleValue() const { return Kind == ValType::SimpleVal; } in isSimpleValue()
237 bool isCoercedLoadValue() const { return Kind == ValType::LoadVal; } in isCoercedLoadValue()
239 bool isUndefValue() const { return Kind == ValType::UndefVal; } in isUndefValue()
[all …]
/llvm-project-15.0.7/llvm/lib/Object/
H A DWasmObjectFile.cpp188 wasm::ValType Ty = static_cast<wasm::ValType>(readULEB128(Ctx)); in readInitExpr()
189 if (Ty != wasm::ValType::EXTERNREF) { in readInitExpr()
1103 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection()
1108 Sig.Returns.push_back(wasm::ValType(ReturnType)); in parseTypeSection()
1478 if (Segment.ElemKind != uint8_t(wasm::ValType::FUNCREF) && in parseElemSection()
1479 Segment.ElemKind != uint8_t(wasm::ValType::EXTERNREF)) { in parseElemSection()
1487 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection()
1490 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp3049 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall()
3050 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall()
3079 TheCall->setType(ValType); in CheckARMBuiltinExclusiveCall()
6260 } else if (IsN && !ValType->isIntegerType() && !ValType->isPointerType()) { in BuildAtomicExpr()
6300 ValType.removeLocalConst(); in BuildAtomicExpr()
6378 Ty = ValType; in BuildAtomicExpr()
6575 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinAtomicOverloaded()
6603 ValType = ValType.getUnqualifiedType(); in SemaBuiltinAtomicOverloaded()
6957 ValType = ValType.getUnqualifiedType(); in SemaBuiltinNontemporalOverloaded()
6958 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinNontemporalOverloaded()
[all …]

12