| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 534 wasm::ValType PtrTy = in getLibcallSignature() 535 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; 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::F32); in getLibcallSignature() 558 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 562 Rets.push_back(wasm::ValType::F64); in getLibcallSignature() 566 Rets.push_back(wasm::ValType::F64); in getLibcallSignature() 570 Rets.push_back(wasm::ValType::F64); 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 | 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() 243 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol() 244 SmallVector<wasm::ValType, 4> Params; in getOrCreateWasmSymbol() 261 wasm::ValType AddrType = in getOrCreateWasmSymbol() [all …]
|
| H A D | WebAssemblyMCInstLower.cpp | 143 SmallVectorImpl<wasm::ValType> &&Returns, in lowerTypeIndexOperand() 144 SmallVectorImpl<wasm::ValType> &&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(SmallVectorImpl<wasm::ValType> &&, 38 SmallVectorImpl<wasm::ValType> &&) const;
|
| H A D | WebAssemblyUtilities.cpp | 137 wasm::WasmTableType TableType = {wasm::ValType::FUNCREF, Limits}; in getOrCreateFuncrefCallTableSymbol()
|
| H A D | WebAssemblyMachineFunctionInfo.cpp | 109 SmallVectorImpl<wasm::ValType> &Out) { in valTypesFromMVTs()
|
| /freebsd-14.2/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), 43 inline bool isRefType(wasm::ValType Type) { in isRefType() 44 return Type == wasm::ValType::EXTERNREF || Type == wasm::ValType::FUNCREF; in isRefType() 53 const char *typeToString(wasm::ValType Type); [all …]
|
| H A D | WebAssemblyMCTypeUtilities.cpp | 24 return wasm::ValType::I32; in parseType() 26 return wasm::ValType::I64; in parseType() 28 return wasm::ValType::F32; in parseType() 30 return wasm::ValType::F64; in parseType() 33 return wasm::ValType::V128; in parseType() 35 return wasm::ValType::FUNCREF; in parseType() 108 return wasm::ValType::I32; in regClassToValType() 110 return wasm::ValType::I64; in regClassToValType() 112 return wasm::ValType::F32; in regClassToValType() 114 return wasm::ValType::F64; in regClassToValType() [all …]
|
| 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
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/ |
| H A D | WebAssemblyTypeUtilities.cpp | 39 wasm::ValType WebAssembly::toValType(MVT Type) { in toValType() 42 return wasm::ValType::I32; in toValType() 44 return wasm::ValType::I64; in toValType() 46 return wasm::ValType::F32; in toValType() 48 return wasm::ValType::F64; in toValType() 55 return wasm::ValType::V128; in toValType() 57 return wasm::ValType::FUNCREF; in toValType() 59 return wasm::ValType::EXTERNREF; in toValType() 72 wasm::ValType ValTy; in wasmSymbolSetType() 78 ValTy = wasm::ValType::EXTERNREF; in wasmSymbolSetType() [all …]
|
| H A D | WebAssemblyTypeUtilities.h | 59 wasm::ValType toValType(MVT Type);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 207 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in getGlobal() 253 wasm::ValType Type; in typeCheck() 281 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() 289 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() 294 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() 298 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() 301 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in typeCheck() 304 if (popType(ErrorLoc, wasm::ValType::I32)) in typeCheck() 309 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in typeCheck() 317 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in typeCheck() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 31 SmallVector<wasm::ValType, 8> Stack; 32 SmallVector<SmallVector<wasm::ValType, 4>, 8> BrStack; 33 SmallVector<wasm::ValType, 16> LocalTypes; 34 SmallVector<wasm::ValType, 4> ReturnTypes; 42 bool popType(SMLoc ErrorLoc, std::optional<wasm::ValType> EVT); 44 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 50 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 51 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 58 void localDecl(const SmallVectorImpl<wasm::ValType> &Locals);
|
| H A D | WebAssemblyAsmParser.cpp | 385 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList() 485 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand() 841 std::optional<wasm::ValType> ElemType = in parseDirective() 967 SmallVector<wasm::ValType, 4> Locals; in parseDirective() 1013 TOut.emitLocal(SmallVector<wasm::ValType, 0>()); in ensureLocals()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | Wasm.h | 224 enum class ValType { enum 279 ValType ElemType; 373 ValType ElemKind; 437 SmallVector<ValType, 1> Returns; 438 SmallVector<ValType, 4> Params; 442 WasmSignature(SmallVector<ValType, 1> &&InReturns, in WasmSignature() 443 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-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantsContext.h | 288 using ValType = ConstantExprKeyType; 292 using ValType = InlineAsmKeyType; 296 using ValType = ConstantAggrKeyType<ConstantArray>; 300 using ValType = ConstantAggrKeyType<ConstantStruct>; 304 using ValType = ConstantAggrKeyType<ConstantVector>; 520 using ValType = typename ConstantInfo<ConstantClass>::ValType; 522 using LookupKey = std::pair<TypeClass *, ValType>; 541 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage))); 585 ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) { 596 ConstantClass *getOrCreate(TypeClass *Ty, ValType V) { [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSymbolWasm.h | 115 getTableType().ElemType == wasm::ValType::FUNCREF; in isFunctionTable() 119 setTableType(wasm::ValType::FUNCREF); in setFunctionTable() 143 void setTableType(wasm::ValType VT) { in setTableType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 199 wasm::ValType Ty = static_cast<wasm::ValType>(readULEB128(Ctx)); in readInitExpr() 200 if (Ty != wasm::ValType::EXTERNREF) { in readInitExpr() 261 TableType.ElemType = wasm::ValType(readVaruint32(Ctx)); in readTableType() 1120 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection() 1166 if (ElemType != wasm::ValType::FUNCREF && in parseImportSection() 1167 ElemType != wasm::ValType::EXTERNREF) in parseImportSection() 1223 if (ElemType != wasm::ValType::FUNCREF && in parseTableSection() 1224 ElemType != wasm::ValType::EXTERNREF) { in parseTableSection() 1539 Segment.ElemKind = wasm::ValType(ElemKind); in parseElemSection() 1549 Segment.ElemKind = wasm::ValType::FUNCREF; in parseElemSection() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyTIL.h | 536 : SExpr(COP_Literal), ValType(ValueType::getValueType<void>()), Cexpr(C) {} in Literal() 537 Literal(ValueType VT) : SExpr(COP_Literal), ValType(VT) {} in Literal() 545 ValueType valueType() const { return ValType; } in valueType() 563 const ValueType ValType; 590 switch (ValType.Base) { in traverse() 596 switch (ValType.Size) { in traverse() 598 if (ValType.Signed) in traverse() 603 if (ValType.Signed) in traverse() 608 if (ValType.Signed) in traverse() 613 if (ValType.Signed) in traverse() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | GVN.cpp | 191 enum class ValType { enum 204 ValType Kind; 214 Res.Kind = ValType::SimpleVal; in get() 222 Res.Kind = ValType::MemIntrin; in getMI() 230 Res.Kind = ValType::LoadVal; in getLoad() 238 Res.Kind = ValType::UndefVal; in getUndef() 246 Res.Kind = ValType::SelectVal; in getSelect() 253 bool isSimpleValue() const { return Kind == ValType::SimpleVal; } in isSimpleValue() 254 bool isCoercedLoadValue() const { return Kind == ValType::LoadVal; } in isCoercedLoadValue() 256 bool isUndefValue() const { return Kind == ValType::UndefVal; } in isUndefValue() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 3493 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall() 3494 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall() 6088 ValType = ValType.getUnqualifiedType(); in CheckRISCVBuiltinFunctionCall() 6089 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckRISCVBuiltinFunctionCall() 6090 !ValType->isBlockPointerType() && !ValType->isFloatingType() && in CheckRISCVBuiltinFunctionCall() 6091 !ValType->isVectorType() && !ValType->isRVVSizelessBuiltinType()) { in CheckRISCVBuiltinFunctionCall() 8473 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinAtomicOverloaded() 8501 ValType = ValType.getUnqualifiedType(); in SemaBuiltinAtomicOverloaded() 8855 ValType = ValType.getUnqualifiedType(); in SemaBuiltinNontemporalOverloaded() 8856 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in SemaBuiltinNontemporalOverloaded() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ScheduleDAGInstrs.cpp | 1039 for (const auto &[ValType, SUs] : *this) { in dump() 1040 if (isa<const Value *>(ValType)) { in dump() 1041 const Value *V = cast<const Value *>(ValType); in dump() 1046 } else if (isa<const PseudoSourceValue *>(ValType)) in dump() 1047 dbgs() << cast<const PseudoSourceValue *>(ValType); in dump()
|