| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 522 SmallVectorImpl<wasm::ValType> &Rets, in getLibcallSignature() 523 SmallVectorImpl<wasm::ValType> &Params) { in getLibcallSignature() 527 wasm::ValType PtrTy = in getLibcallSignature() 528 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature() 535 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 536 Params.push_back(wasm::ValType::F32); in getLibcallSignature() 539 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 540 Params.push_back(wasm::ValType::F64); in getLibcallSignature() 543 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 544 Params.push_back(wasm::ValType::I32); in getLibcallSignature() [all …]
|
| H A D | WebAssemblyRuntimeLibcallSignatures.h | 27 SmallVectorImpl<wasm::ValType> &Rets, 28 SmallVectorImpl<wasm::ValType> &Params); 32 SmallVectorImpl<wasm::ValType> &Rets, 33 SmallVectorImpl<wasm::ValType> &Params);
|
| H A D | WebAssemblyAsmPrinter.cpp | 110 static char getInvokeSig(wasm::ValType VT) { in getInvokeSig() 112 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() [all …]
|
| H A D | WebAssemblyMCInstLower.cpp | 143 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 D | WebAssemblyMCInstLower.h | 37 MCOperand lowerTypeIndexOperand(SmallVector<wasm::ValType, 1> &&, 38 SmallVector<wasm::ValType, 4> &&) const;
|
| H A D | WebAssemblyMachineFunctionInfo.cpp | 109 SmallVectorImpl<wasm::ValType> &Out) { in valTypesFromMVTs()
|
| H A D | WebAssemblyMachineFunctionInfo.h | 180 SmallVectorImpl<wasm::ValType> &Out);
|
| /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() 28 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() 39 return wasm::ValType::FUNCREF; in parseType() 41 return wasm::ValType::EXTERNREF; in parseType() 102 const char *WebAssembly::typeToString(wasm::ValType Type) { in typeToString() 106 std::string WebAssembly::typeListToString(ArrayRef<wasm::ValType> List) { in typeListToString() [all …]
|
| H A D | WebAssemblyTypeUtilities.h | 33 I32 = unsigned(wasm::ValType::I32), 34 I64 = unsigned(wasm::ValType::I64), 35 F32 = unsigned(wasm::ValType::F32), 36 F64 = unsigned(wasm::ValType::F64), 37 V128 = unsigned(wasm::ValType::V128), 38 Externref = unsigned(wasm::ValType::EXTERNREF), 39 Funcref = unsigned(wasm::ValType::FUNCREF), 85 inline bool isRefType(wasm::ValType Type) { in isRefType() 86 return Type == wasm::ValType::EXTERNREF || Type == wasm::ValType::FUNCREF; in isRefType() 91 std::optional<wasm::ValType> parseType(StringRef Type); [all …]
|
| /openbsd-src/gnu/llvm/lld/wasm/ |
| H A D | WriterUtils.cpp | 21 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() 58 toString(static_cast<ValType>(type.Type)); in toString() [all …]
|
| H A D | WriterUtils.h | 38 void writeValueType(raw_ostream &os, llvm::wasm::ValType type, 69 std::string toString(llvm::wasm::ValType type);
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.h | 31 SmallVector<wasm::ValType, 8> Stack; 32 SmallVector<wasm::ValType, 16> LocalTypes; 33 SmallVector<wasm::ValType, 4> ReturnTypes; 41 bool popType(SMLoc ErrorLoc, std::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 D | WebAssemblyAsmTypeCheck.cpp | 57 void WebAssemblyAsmTypeCheck::localDecl(const SmallVector<wasm::ValType, 4> &Locals) { in localDecl() argument 86 std::optional<wasm::ValType> EVT) { in popType() 116 wasm::ValType &Type) { in getLocal() 168 wasm::ValType &Type) { in getGlobal() 175 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal() 182 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in getGlobal() 196 wasm::ValType &Type) { in getTable() 205 Type = static_cast<wasm::ValType>(WasmSym->getTableType().ElemType); in getTable() 228 wasm::ValType Type; in typeCheck() 256 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 375 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList() 475 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand() 840 std::optional<wasm::ValType> ElemType = in ParseDirective() 957 SmallVector<wasm::ValType, 4> Locals; in ParseDirective() 1001 TOut.emitLocal(SmallVector<wasm::ValType, 0>()); in ensureLocals()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyTargetStreamer.cpp | 30 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 D | WebAssemblyTargetStreamer.h | 34 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
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | ConstantsContext.h | 319 using ValType = ConstantExprKeyType; 323 using ValType = InlineAsmKeyType; 327 using ValType = ConstantAggrKeyType<ConstantArray>; 331 using ValType = ConstantAggrKeyType<ConstantStruct>; 335 using ValType = ConstantAggrKeyType<ConstantVector>; 553 using ValType = typename ConstantInfo<ConstantClass>::ValType; 555 using LookupKey = std::pair<TypeClass *, ValType>; 574 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage))); 618 ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) { 629 ConstantClass *getOrCreate(TypeClass *Ty, ValType V) { [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | Wasm.h | 424 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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/MC/ |
| H A D | MCSymbolWasm.h | 119 setTableType(wasm::ValType::FUNCREF); in setFunctionTable() 143 void setTableType(wasm::ValType VT) { in setTableType()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyTIL.h | 531 : SExpr(COP_Literal), ValType(ValueType::getValueType<void>()), Cexpr(C) {} in Literal() 532 Literal(ValueType VT) : SExpr(COP_Literal), ValType(VT) {} in Literal() 540 ValueType valueType() const { return ValType; } in valueType() 558 const ValueType ValType; 581 switch (ValType.Base) { in traverse() 587 switch (ValType.Size) { in traverse() 589 if (ValType.Signed) in traverse() 594 if (ValType.Signed) in traverse() 599 if (ValType.Signed) in traverse() 604 if (ValType.Signed) in traverse() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | GVN.cpp | 184 enum class ValType { enum 197 ValType Kind; 207 Res.Kind = ValType::SimpleVal; in get() 215 Res.Kind = ValType::MemIntrin; in getMI() 223 Res.Kind = ValType::LoadVal; in getLoad() 231 Res.Kind = ValType::UndefVal; in getUndef() 239 Res.Kind = ValType::SelectVal; in getSelect() 246 bool isSimpleValue() const { return Kind == ValType::SimpleVal; } in isSimpleValue() 247 bool isCoercedLoadValue() const { return Kind == ValType::LoadVal; } in isCoercedLoadValue() 248 bool isMemIntrinValue() const { return Kind == ValType::MemIntrin; } in isMemIntrinValue() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 188 wasm::ValType Ty = static_cast<wasm::ValType>(readULEB128(Ctx)); in readInitExpr() 189 if (Ty != wasm::ValType::EXTERNREF) { in readInitExpr() 1095 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection() 1100 Sig.Returns.push_back(wasm::ValType(ReturnType)); in parseTypeSection() 1470 if (Segment.ElemKind != uint8_t(wasm::ValType::FUNCREF) && in parseElemSection() 1471 Segment.ElemKind != uint8_t(wasm::ValType::EXTERNREF)) { in parseElemSection() 1479 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection() 1482 Segment.ElemKind = uint8_t(wasm::ValType::FUNCREF); in parseElemSection()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ScheduleDAGInstrs.cpp | 1028 for (const auto &[ValType, SUs] : *this) { in dump() 1029 if (ValType.is<const Value*>()) { in dump() 1030 const Value *V = ValType.get<const Value*>(); in dump() 1036 else if (ValType.is<const PseudoSourceValue*>()) in dump() 1037 dbgs() << ValType.get<const PseudoSourceValue*>(); in dump()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 3128 QualType ValType = pointerType->getPointeeType(); in CheckARMBuiltinExclusiveCall() local 3129 QualType AddrType = ValType.getUnqualifiedType().withVolatile(); in CheckARMBuiltinExclusiveCall() 3135 if (!AddrType.isAtLeastAsQualifiedAs(ValType)) { in CheckARMBuiltinExclusiveCall() 3152 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall() 3153 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall() 3160 if (Context.getTypeSize(ValType) > MaxWidth) { in CheckARMBuiltinExclusiveCall() 3167 switch (ValType.getObjCLifetime()) { in CheckARMBuiltinExclusiveCall() 3177 << ValType << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall() 3182 TheCall->setType(ValType); in CheckARMBuiltinExclusiveCall() 3189 Context, ValType, /*consume*/ false); in CheckARMBuiltinExclusiveCall() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | WasmObjectWriter.cpp | 328 void writeValueType(wasm::ValType Ty) { W->OS << static_cast<char>(Ty); } in writeValueType() 837 for (wasm::ValType Ty : Sig.Params) in writeTypeSection() 840 for (wasm::ValType Ty : Sig.Returns) in writeTypeSection() 952 writeValueType(wasm::ValType::EXTERNREF); in writeGlobalSection()
|