Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRuntimeLibcallSignatures.cpp523 wasm::ValType PtrTy = in getLibcallSignature()
524 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature()
531 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
535 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
539 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
543 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
547 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
551 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
555 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
559 Rets.push_back(wasm::ValType::F64); in getLibcallSignature()
[all …]
H A DWebAssemblyMCInstLower.cpp144 SmallVector<wasm::ValType, 1> &&Returns, in lowerTypeIndexOperand() argument
145 SmallVector<wasm::ValType, 4> &&Params) const { in lowerTypeIndexOperand()
161 return wasm::ValType::I32; in getType()
163 return wasm::ValType::I64; in getType()
165 return wasm::ValType::F32; in getType()
167 return wasm::ValType::F64; in getType()
169 return wasm::ValType::V128; in getType()
171 return wasm::ValType::EXTERNREF; in getType()
173 return wasm::ValType::FUNCREF; in getType()
219 SmallVector<wasm::ValType, 4> Returns; in lower()
[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 static char getInvokeSig(wasm::ValType VT) { in getInvokeSig()
114 case wasm::ValType::I32: in getInvokeSig()
116 case wasm::ValType::I64: in getInvokeSig()
118 case wasm::ValType::F32: in getInvokeSig()
120 case wasm::ValType::F64: in getInvokeSig()
122 case wasm::ValType::V128: in getInvokeSig()
124 case wasm::ValType::FUNCREF: in getInvokeSig()
126 case wasm::ValType::EXTERNREF: in getInvokeSig()
237 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol()
238 SmallVector<wasm::ValType, 4> Params; in getOrCreateWasmSymbol()
[all …]
H A DWebAssemblyMCInstLower.h37 MCOperand lowerTypeIndexOperand(SmallVector<wasm::ValType, 1> &&,
38 SmallVector<wasm::ValType, 4> &&) const;
H A DWebAssemblyMachineFunctionInfo.cpp94 SmallVectorImpl<wasm::ValType> &Out) { in valTypesFromMVTs()
H A DWebAssemblyMachineFunctionInfo.h180 SmallVectorImpl<wasm::ValType> &Out);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyTypeUtilities.cpp27 return wasm::ValType::I32; in parseType()
29 return wasm::ValType::I64; in parseType()
31 return wasm::ValType::F32; in parseType()
33 return wasm::ValType::F64; in parseType()
36 return wasm::ValType::V128; in parseType()
134 return wasm::ValType::I32; in toValType()
136 return wasm::ValType::I64; in toValType()
138 return wasm::ValType::F32; in toValType()
140 return wasm::ValType::F64; in toValType()
160 return wasm::ValType::I32; in regClassToValType()
[all …]
H A DWebAssemblyTypeUtilities.h29 I32 = unsigned(wasm::ValType::I32),
30 I64 = unsigned(wasm::ValType::I64),
31 F32 = unsigned(wasm::ValType::F32),
32 F64 = unsigned(wasm::ValType::F64),
33 V128 = unsigned(wasm::ValType::V128),
34 Externref = unsigned(wasm::ValType::EXTERNREF),
35 Funcref = unsigned(wasm::ValType::FUNCREF),
48 Funcref = unsigned(wasm::ValType::FUNCREF),
64 const char *typeToString(wasm::ValType Type);
74 wasm::ValType toValType(MVT Type);
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h30 SmallVector<wasm::ValType, 8> Stack;
31 SmallVector<wasm::ValType, 16> LocalTypes;
32 SmallVector<wasm::ValType, 4> ReturnTypes;
46 bool popType(SMLoc ErrorLoc, Optional<wasm::ValType> EVT);
47 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
52 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
58 void localDecl(const SmallVector<wasm::ValType, 4> &Locals);
H A DWebAssemblyAsmTypeCheck.cpp57 void WebAssemblyAsmTypeCheck::localDecl(const SmallVector<wasm::ValType, 4> &Locals) { in localDecl() argument
83 Optional<wasm::ValType> EVT) { in popType()
104 wasm::ValType &Type) { in getLocal()
147 wasm::ValType &Type) { in getGlobal()
154 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal()
159 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in getGlobal()
187 wasm::ValType Type; in typeCheck()
221 if (popType(ErrorLoc, wasm::ValType::I32)) return true; in typeCheck()
234 auto VT = static_cast<wasm::ValType>(Inst.getOperand(0).getImm()); in typeCheck()
H A DWebAssemblyAsmParser.cpp372 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList()
472 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand()
849 Optional<wasm::ValType> ElemType = WebAssembly::parseType(ElemTypeName); in ParseDirective()
953 SmallVector<wasm::ValType, 4> Locals; in ParseDirective()
997 TOut.emitLocal(SmallVector<wasm::ValType, 0>()); in ensureLocals()
/freebsd-13.1/contrib/llvm-project/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()
74 static_cast<wasm::ValType>(Sym->getGlobalType().Type)); in emitGlobalType()
84 << WebAssembly::typeToString(static_cast<wasm::ValType>(Type.ElemType)); in emitTableType()
123 void WebAssemblyTargetWasmStreamer::emitLocal(ArrayRef<wasm::ValType> Types) { in emitLocal()
124 SmallVector<std::pair<wasm::ValType, uint32_t>, 4> Grouped; in emitLocal()
H A DWebAssemblyTargetStreamer.h34 virtual void emitLocal(ArrayRef<wasm::ValType> Types) = 0;
58 void emitValueType(wasm::ValType Type);
68 void emitLocal(ArrayRef<wasm::ValType> Types) override;
85 void emitLocal(ArrayRef<wasm::ValType> Types) override;
106 void emitLocal(ArrayRef<wasm::ValType>) override {} in emitLocal() argument
H A DWebAssemblyInstPrinter.cpp376 case long(wasm::ValType::EXTERNREF): in printWebAssemblyHeapTypeOperand()
379 case long(wasm::ValType::FUNCREF): in printWebAssemblyHeapTypeOperand()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DWasm.h392 enum class ValType { enum
403 SmallVector<ValType, 1> Returns;
404 SmallVector<ValType, 4> Params;
408 WasmSignature(SmallVector<ValType, 1> &&InReturns, in WasmSignature()
409 SmallVector<ValType, 4> &&InParams) in WasmSignature()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantsContext.h392 using ValType = ConstantExprKeyType;
396 using ValType = InlineAsmKeyType;
400 using ValType = ConstantAggrKeyType<ConstantArray>;
404 using ValType = ConstantAggrKeyType<ConstantStruct>;
408 using ValType = ConstantAggrKeyType<ConstantVector>;
644 using ValType = typename ConstantInfo<ConstantClass>::ValType;
646 using LookupKey = std::pair<TypeClass *, ValType>;
665 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
709 ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) {
720 ConstantClass *getOrCreate(TypeClass *Ty, ValType V) {
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSymbolWasm.h115 setTableType(wasm::ValType::FUNCREF); in setFunctionTable()
139 void setTableType(wasm::ValType VT) { in setTableType()
/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/contrib/llvm-project/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()
1020 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection()
1025 Sig.Returns.push_back(wasm::ValType(ReturnType)); in parseTypeSection()
1378 if (Segment.ElemKind != uint8_t(wasm::ValType::FUNCREF) && in parseElemSection()
1379 Segment.ElemKind != uint8_t(wasm::ValType::EXTERNREF)) { in parseElemSection()
1387 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection()
1390 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp2393 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall()
2394 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall()
2423 TheCall->setType(ValType); in CheckARMBuiltinExclusiveCall()
5368 } else if (IsN && !ValType->isIntegerType() && !ValType->isPointerType()) { in BuildAtomicExpr()
5406 ValType.removeLocalConst(); in BuildAtomicExpr()
5484 Ty = ValType; in BuildAtomicExpr()
5678 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinAtomicOverloaded()
5706 ValType = ValType.getUnqualifiedType(); in SemaBuiltinAtomicOverloaded()
6060 ValType = ValType.getUnqualifiedType(); in SemaBuiltinNontemporalOverloaded()
6061 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinNontemporalOverloaded()
[all …]
H A DSemaLookup.cpp5266 QualType ValType = cast<ValueDecl>(ND)->getType(); in ValidateCandidate() local
5267 if (ValType.isNull()) in ValidateCandidate()
5269 if (ValType->isAnyPointerType() || ValType->isReferenceType()) in ValidateCandidate()
5270 ValType = ValType->getPointeeType(); in ValidateCandidate()
5271 if (const FunctionProtoType *FPT = ValType->getAs<FunctionProtoType>()) in ValidateCandidate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DWasmObjectWriter.cpp307 void writeValueType(wasm::ValType Ty) { W->OS << static_cast<char>(Ty); } in writeValueType()
783 for (wasm::ValType Ty : Sig.Params) in writeTypeSection()
786 for (wasm::ValType Ty : Sig.Returns) in writeTypeSection()
895 writeValueType(wasm::ValType::EXTERNREF); in writeGlobalSection()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h930 RecTy *ValType; variable
934 NumConds(NC), ValType(Type) {} in CondOpInit()
953 RecTy *getValType() const { return ValType; } in getValType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp497 if (Segment.ElemKind != uint32_t(wasm::ValType::FUNCREF)) { in writeSectionContent()

12