| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 551 SmallVectorImpl<wasm::ValType> &Rets, in getLibcallSignature() 552 SmallVectorImpl<wasm::ValType> &Params) { in getLibcallSignature() 556 wasm::ValType PtrTy = in getLibcallSignature() 557 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature() 564 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 565 Params.push_back(wasm::ValType::F32); in getLibcallSignature() 568 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 569 Params.push_back(wasm::ValType::F64); in getLibcallSignature() 572 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 573 Params.push_back(wasm::ValType::I32); in getLibcallSignature() [all …]
|
| H A D | WebAssemblyRuntimeLibcallSignatures.h | 29 SmallVectorImpl<wasm::ValType> &Rets, 30 SmallVectorImpl<wasm::ValType> &Params); 33 SmallVectorImpl<wasm::ValType> &Rets, 34 SmallVectorImpl<wasm::ValType> &Params);
|
| H A D | WebAssemblyMCInstLower.cpp | 141 SmallVectorImpl<wasm::ValType> &&Returns, in lowerTypeIndexOperand() 142 SmallVectorImpl<wasm::ValType> &&Params) const { in lowerTypeIndexOperand() 156 SmallVectorImpl<wasm::ValType> &Returns) { in getFunctionReturns() 174 wasm::ValType PtrTy = TLI.getPointerTy(MF->getDataLayout()) == MVT::i32 in lower() 175 ? wasm::ValType::I32 in lower() 176 : wasm::ValType::I64; in lower() 204 SmallVector<wasm::ValType, 4> Returns; in lower() 205 SmallVector<wasm::ValType, 4> Params; in lower() 234 SmallVector<wasm::ValType, 2> Returns; in lower() 247 Returns = {PtrTy, wasm::ValType::EXNREF}; in lower() [all …]
|
| H A D | WebAssemblyAsmPrinter.cpp | 115 static char getInvokeSig(wasm::ValType VT) { in getInvokeSig() 117 case wasm::ValType::I32: in getInvokeSig() 119 case wasm::ValType::I64: in getInvokeSig() 121 case wasm::ValType::F32: in getInvokeSig() 123 case wasm::ValType::F64: in getInvokeSig() 125 case wasm::ValType::V128: in getInvokeSig() 127 case wasm::ValType::FUNCREF: in getInvokeSig() 129 case wasm::ValType::EXTERNREF: in getInvokeSig() 131 case wasm::ValType::EXNREF: in getInvokeSig() 251 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol() [all …]
|
| H A D | WebAssemblyMCInstLower.h | 37 MCOperand lowerTypeIndexOperand(SmallVectorImpl<wasm::ValType> &&, 38 SmallVectorImpl<wasm::ValType> &&) const;
|
| H A D | WebAssemblyUtilities.cpp | 139 wasm::WasmTableType TableType = {wasm::ValType::FUNCREF, Limits}; in getOrCreateFuncrefCallTableSymbol()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyMCTypeUtilities.h | 28 I32 = unsigned(wasm::ValType::I32), 29 I64 = unsigned(wasm::ValType::I64), 30 F32 = unsigned(wasm::ValType::F32), 31 F64 = unsigned(wasm::ValType::F64), 32 V128 = unsigned(wasm::ValType::V128), 33 Externref = unsigned(wasm::ValType::EXTERNREF), 34 Funcref = unsigned(wasm::ValType::FUNCREF), 35 Exnref = unsigned(wasm::ValType::EXNREF), 48 inline bool isRefType(wasm::ValType Type) { in isRefType() 49 return Type == wasm::ValType::EXTERNREF || Type == wasm::ValType::FUNCREF || in isRefType() [all …]
|
| H A D | WebAssemblyMCTypeUtilities.cpp | 20 std::optional<wasm::ValType> WebAssembly::parseType(StringRef Type) { in parseType() 21 return llvm::StringSwitch<std::optional<wasm::ValType>>{Type} in parseType() 22 .Case("i32", wasm::ValType::I32) in parseType() 23 .Case("i64", wasm::ValType::I64) in parseType() 24 .Case("f32", wasm::ValType::F32) in parseType() 25 .Case("f64", wasm::ValType::F64) in parseType() 27 wasm::ValType::V128) in parseType() 28 .Case("funcref", wasm::ValType::FUNCREF) in parseType() 29 .Case("externref", wasm::ValType::EXTERNREF) in parseType() 30 .Case("exnref", wasm::ValType::EXNREF) in parseType() [all …]
|
| H A D | WebAssemblyTargetStreamer.cpp | 28 void WebAssemblyTargetStreamer::emitValueType(wasm::ValType Type) { in emitValueType() 40 ArrayRef<wasm::ValType> Types) { in printTypes() 52 void WebAssemblyTargetAsmStreamer::emitLocal(ArrayRef<wasm::ValType> Types) { in emitLocal() 70 static_cast<wasm::ValType>(Sym->getGlobalType().Type)); in emitGlobalType() 80 << 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
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 57 const SmallVectorImpl<wasm::ValType> &Locals) { in localDecl() 82 assert(std::get_if<wasm::ValType>(&TypeB)); in match() 84 WebAssembly::isRefType(std::get<wasm::ValType>(TypeB))) in match() 103 WebAssembly::typeToString(std::get<wasm::ValType>(Types[I - 1]))); in getTypesString() 120 WebAssemblyAsmTypeCheck::getTypesString(ArrayRef<wasm::ValType> Types, in getTypesString() 127 ArrayRef<wasm::ValType> ValTypes) { in valTypesToStackTypes() 130 [](wasm::ValType Val) -> StackType { return Val; }); in valTypesToStackTypes() 135 ArrayRef<wasm::ValType> ValTypes, in checkTypes() 193 ArrayRef<wasm::ValType> ValTypes, in popTypes() 224 void WebAssemblyAsmTypeCheck::pushTypes(ArrayRef<wasm::ValType> ValTypes) { in pushTypes() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 35 using StackType = std::variant<wasm::ValType, Ref, Any, Polymorphic>; 43 SmallVector<wasm::ValType, 16> LocalTypes; 54 bool checkTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types, 58 bool popTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types, 65 void pushTypes(ArrayRef<wasm::ValType> Types); 68 std::string getTypesString(ArrayRef<wasm::ValType> Types, 72 valTypesToStackTypes(ArrayRef<wasm::ValType> ValTypes); 76 bool getLocal(SMLoc ErrorLoc, const MCOperand &LocalOp, wasm::ValType &Type); 81 wasm::ValType &Type); 82 bool getTable(SMLoc ErrorLoc, const MCOperand &TableOp, wasm::ValType &Type); [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 419 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList() 517 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand() 971 std::optional<wasm::ValType> ElemType = in parseDirective() 1099 SmallVector<wasm::ValType, 4> Locals; in parseDirective() 1145 TOut.emitLocal(SmallVector<wasm::ValType, 0>()); in ensureLocals()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/ |
| H A D | WebAssemblyTypeUtilities.cpp | 40 wasm::ValType WebAssembly::toValType(MVT Type) { in toValType() 43 return wasm::ValType::I32; in toValType() 45 return wasm::ValType::I64; in toValType() 47 return wasm::ValType::F32; in toValType() 49 return wasm::ValType::F64; in toValType() 57 return wasm::ValType::V128; in toValType() 59 return wasm::ValType::FUNCREF; in toValType() 61 return wasm::ValType::EXTERNREF; in toValType() 63 return wasm::ValType::EXNREF; in toValType() 76 wasm::ValType ValTy; in wasmSymbolSetType() [all …]
|
| H A D | WebAssemblyTypeUtilities.h | 59 wasm::ValType toValType(MVT Type);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | Wasm.h | 268 enum class ValType { enum 329 ValType ElemType; 437 ValType ElemKind; 507 SmallVector<ValType, 1> Returns; 508 SmallVector<ValType, 4> Params; 516 WasmSignature(SmallVector<ValType, 1> &&InReturns, in WasmSignature() 517 SmallVector<ValType, 4> &&InParams) in WasmSignature()
|
| H A D | WasmTraits.h | 90 wasm::ValType(0), DenseMapInfo<wasm::WasmLimits, void>::getEmptyKey()}; 94 wasm::ValType(1),
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantsContext.h | 271 using ValType = ConstantExprKeyType; 275 using ValType = InlineAsmKeyType; 279 using ValType = ConstantAggrKeyType<ConstantArray>; 283 using ValType = ConstantAggrKeyType<ConstantStruct>; 287 using ValType = ConstantAggrKeyType<ConstantVector>; 291 using ValType = ConstantPtrAuthKeyType; 552 using ValType = typename ConstantInfo<ConstantClass>::ValType; 554 using LookupKey = std::pair<TypeClass *, ValType>; 573 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage))); 617 ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) { [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSymbolWasm.h | 116 getTableType().ElemType == wasm::ValType::FUNCREF; in isFunctionTable() 122 setTableType(wasm::ValType::FUNCREF, flags); in setFunctionTable() 146 void setTableType(wasm::ValType VT,
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaARM.cpp | 895 QualType ValType = pointerType->getPointeeType(); in CheckARMBuiltinExclusiveCall() local 896 QualType AddrType = ValType.getUnqualifiedType().withVolatile(); in CheckARMBuiltinExclusiveCall() 902 if (!AddrType.isAtLeastAsQualifiedAs(ValType, getASTContext())) { in CheckARMBuiltinExclusiveCall() 919 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall() 920 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall() 927 if (Context.getTypeSize(ValType) > MaxWidth) { in CheckARMBuiltinExclusiveCall() 934 switch (ValType.getObjCLifetime()) { in CheckARMBuiltinExclusiveCall() 944 << ValType << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall() 949 TheCall->setType(ValType); in CheckARMBuiltinExclusiveCall() 956 Context, ValType, /*consume*/ false); in CheckARMBuiltinExclusiveCall()
|
| H A D | SemaRISCV.cpp | 1389 QualType ValType = PtrType->getPointeeType(); in CheckBuiltinFunctionCall() local 1390 ValType = ValType.getUnqualifiedType(); in CheckBuiltinFunctionCall() 1391 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckBuiltinFunctionCall() 1392 !ValType->isBlockPointerType() && !ValType->isFloatingType() && in CheckBuiltinFunctionCall() 1393 !ValType->isVectorType() && !ValType->isRVVSizelessBuiltinType()) { in CheckBuiltinFunctionCall() 1401 TheCall->setType(ValType); in CheckBuiltinFunctionCall() 1407 Context, ValType, /*consume*/ false); in CheckBuiltinFunctionCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 175 static wasm::ValType parseValType(WasmObjectFile::ReadContext &Ctx, in parseValType() 188 return wasm::ValType(Code); in parseValType() 193 return wasm::ValType(wasm::ValType::OTHERREF); in parseValType() 1301 if (ElemType != wasm::ValType::FUNCREF && in parseImportSection() 1302 ElemType != wasm::ValType::EXTERNREF && in parseImportSection() 1303 ElemType != wasm::ValType::EXNREF && in parseImportSection() 1304 ElemType != wasm::ValType::OTHERREF) in parseImportSection() 1360 if (ElemType != wasm::ValType::FUNCREF && in parseTableSection() 1361 ElemType != wasm::ValType::EXTERNREF && in parseTableSection() 1362 ElemType != wasm::ValType::EXNREF && in parseTableSection() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyTIL.h | 537 : SExpr(COP_Literal), ValType(ValueType::getValueType<void>()), Cexpr(C) {} in Literal() 538 Literal(ValueType VT) : SExpr(COP_Literal), ValType(VT) {} in Literal() 546 ValueType valueType() const { return ValType; } in valueType() 564 const ValueType ValType; 591 switch (ValType.Base) { in traverse() 597 switch (ValType.Size) { in traverse() 599 if (ValType.Signed) in traverse() 604 if (ValType.Signed) in traverse() 609 if (ValType.Signed) in traverse() 614 if (ValType.Signed) in traverse() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | GVN.cpp | 198 enum class ValType { enum 211 ValType Kind; 221 Res.Kind = ValType::SimpleVal; in get() 229 Res.Kind = ValType::MemIntrin; in getMI() 237 Res.Kind = ValType::LoadVal; in getLoad() 245 Res.Kind = ValType::UndefVal; in getUndef() 253 Res.Kind = ValType::SelectVal; in getSelect() 260 bool isSimpleValue() const { return Kind == ValType::SimpleVal; } in isSimpleValue() 261 bool isCoercedLoadValue() const { return Kind == ValType::LoadVal; } in isCoercedLoadValue() 262 bool isMemIntrinValue() const { return Kind == ValType::MemIntrin; } in isMemIntrinValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ScheduleDAGInstrs.cpp | 1058 for (const auto &[ValType, SUs] : *this) { in dump() 1059 if (isa<const Value *>(ValType)) { in dump() 1060 const Value *V = cast<const Value *>(ValType); in dump() 1065 } else if (isa<const PseudoSourceValue *>(ValType)) in dump() 1066 dbgs() << cast<const PseudoSourceValue *>(ValType); in dump()
|