/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 | WebAssemblyAsmPrinter.cpp | 113 static char getInvokeSig(wasm::ValType VT) { in getInvokeSig() 115 case wasm::ValType::I32: in getInvokeSig() 117 case wasm::ValType::I64: in getInvokeSig() 119 case wasm::ValType::F32: in getInvokeSig() 121 case wasm::ValType::F64: in getInvokeSig() 123 case wasm::ValType::V128: in getInvokeSig() 125 case wasm::ValType::FUNCREF: in getInvokeSig() 127 case wasm::ValType::EXTERNREF: in getInvokeSig() 129 case wasm::ValType::EXNREF: in getInvokeSig() 247 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol() [all …]
|
H A D | WebAssemblyMCInstLower.cpp | 142 SmallVectorImpl<wasm::ValType> &&Returns, in lowerTypeIndexOperand() 143 SmallVectorImpl<wasm::ValType> &&Params) const { in lowerTypeIndexOperand() 157 SmallVectorImpl<wasm::ValType> &Returns) { in getFunctionReturns() 198 SmallVector<wasm::ValType, 4> Returns; in lower() 199 SmallVector<wasm::ValType, 4> Params; in lower() 227 SmallVector<wasm::ValType, 1> Returns; in lower() 230 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 | 138 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), 44 inline bool isRefType(wasm::ValType Type) { in isRefType() 45 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 | 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/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmTypeCheck.cpp | 57 const SmallVectorImpl<wasm::ValType> &Locals) { in localDecl() 86 std::optional<wasm::ValType> EVT) { in popType() 116 wasm::ValType &Type) { in getLocal() 126 checkStackTop(const SmallVectorImpl<wasm::ValType> &ExpectedStackTop, in checkStackTop() 127 const SmallVectorImpl<wasm::ValType> &Got) { in checkStackTop() 142 const SmallVector<wasm::ValType, 4> &Expected = in checkBr() 193 wasm::ValType &Type) { in getGlobal() 200 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal() 207 Type = is64 ? wasm::ValType::I64 : wasm::ValType::I32; in getGlobal() 221 wasm::ValType &Type) { in getTable() [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 | 372 bool parseRegTypeList(SmallVectorImpl<wasm::ValType> &Types) { in parseRegTypeList() 472 wasm::WasmSignature Sig({static_cast<wasm::ValType>(BT)}, {}); in addBlockTypeOperand() 827 std::optional<wasm::ValType> ElemType = in parseDirective() 954 SmallVector<wasm::ValType, 4> Locals; in parseDirective() 1000 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 | 257 enum class ValType { enum 316 ValType ElemType; 420 ValType ElemKind; 488 SmallVector<ValType, 1> Returns; 489 SmallVector<ValType, 4> Params; 497 WasmSignature(SmallVector<ValType, 1> &&InReturns, in WasmSignature() 498 SmallVector<ValType, 4> &&InParams) in WasmSignature()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantsContext.h | 260 using ValType = ConstantExprKeyType; 264 using ValType = InlineAsmKeyType; 268 using ValType = ConstantAggrKeyType<ConstantArray>; 272 using ValType = ConstantAggrKeyType<ConstantStruct>; 276 using ValType = ConstantAggrKeyType<ConstantVector>; 280 using ValType = ConstantPtrAuthKeyType; 546 using ValType = typename ConstantInfo<ConstantClass>::ValType; 548 using LookupKey = std::pair<TypeClass *, ValType>; 567 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage))); 611 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 | 912 QualType ValType = pointerType->getPointeeType(); in CheckARMBuiltinExclusiveCall() local 913 QualType AddrType = ValType.getUnqualifiedType().withVolatile(); in CheckARMBuiltinExclusiveCall() 919 if (!AddrType.isAtLeastAsQualifiedAs(ValType)) { in CheckARMBuiltinExclusiveCall() 936 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckARMBuiltinExclusiveCall() 937 !ValType->isBlockPointerType() && !ValType->isFloatingType()) { in CheckARMBuiltinExclusiveCall() 944 if (Context.getTypeSize(ValType) > MaxWidth) { in CheckARMBuiltinExclusiveCall() 951 switch (ValType.getObjCLifetime()) { in CheckARMBuiltinExclusiveCall() 961 << ValType << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall() 966 TheCall->setType(ValType); in CheckARMBuiltinExclusiveCall() 973 Context, ValType, /*consume*/ false); in CheckARMBuiltinExclusiveCall()
|
H A D | SemaRISCV.cpp | 1342 QualType ValType = PtrType->getPointeeType(); in CheckBuiltinFunctionCall() local 1343 ValType = ValType.getUnqualifiedType(); in CheckBuiltinFunctionCall() 1344 if (!ValType->isIntegerType() && !ValType->isAnyPointerType() && in CheckBuiltinFunctionCall() 1345 !ValType->isBlockPointerType() && !ValType->isFloatingType() && in CheckBuiltinFunctionCall() 1346 !ValType->isVectorType() && !ValType->isRVVSizelessBuiltinType()) { in CheckBuiltinFunctionCall() 1354 TheCall->setType(ValType); in CheckBuiltinFunctionCall() 1360 Context, ValType, /*consume*/ false); in CheckBuiltinFunctionCall()
|
H A D | SemaChecking.cpp | 3765 QualType ValType = AtomTy; // 'C' in BuildAtomicExpr() local 3779 ValType = AtomTy->castAs<AtomicType>()->getValueType(); in BuildAtomicExpr() 3781 if (ValType.isConstQualified()) { in BuildAtomicExpr() 3802 auto IsAllowedValueType = [&](QualType ValType, in BuildAtomicExpr() 3804 if (ValType->isIntegerType()) in BuildAtomicExpr() 3806 if (ValType->isPointerType()) in BuildAtomicExpr() 3808 if (!(ValType->isFloatingType() && (AllowedType & AOEVT_FP))) in BuildAtomicExpr() 3811 if (ValType->isSpecificBuiltinType(BuiltinType::LongDouble) && in BuildAtomicExpr() 3817 if (!IsAllowedValueType(ValType, ArithAllows)) { in BuildAtomicExpr() 3827 if (IsC11 && ValType->isPointerType() && in BuildAtomicExpr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | WasmObjectFile.cpp | 178 static wasm::ValType parseValType(WasmObjectFile::ReadContext &Ctx, in parseValType() 191 return wasm::ValType(Code); in parseValType() 196 return wasm::ValType(wasm::ValType::OTHERREF); in parseValType() 1293 if (ElemType != wasm::ValType::FUNCREF && in parseImportSection() 1294 ElemType != wasm::ValType::EXTERNREF && in parseImportSection() 1295 ElemType != wasm::ValType::EXNREF && in parseImportSection() 1296 ElemType != wasm::ValType::OTHERREF) in parseImportSection() 1352 if (ElemType != wasm::ValType::FUNCREF && in parseTableSection() 1353 ElemType != wasm::ValType::EXTERNREF && in parseTableSection() 1354 ElemType != wasm::ValType::EXNREF && in parseTableSection() [all …]
|
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | GVN.cpp | 192 enum class ValType { enum 205 ValType Kind; 215 Res.Kind = ValType::SimpleVal; in get() 223 Res.Kind = ValType::MemIntrin; in getMI() 231 Res.Kind = ValType::LoadVal; in getLoad() 239 Res.Kind = ValType::UndefVal; in getUndef() 247 Res.Kind = ValType::SelectVal; in getSelect() 254 bool isSimpleValue() const { return Kind == ValType::SimpleVal; } in isSimpleValue() 255 bool isCoercedLoadValue() const { return Kind == ValType::LoadVal; } in isCoercedLoadValue() 256 bool isMemIntrinValue() const { return Kind == ValType::MemIntrin; } in isMemIntrinValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ScheduleDAGInstrs.cpp | 1041 for (const auto &[ValType, SUs] : *this) { in dump() 1042 if (isa<const Value *>(ValType)) { in dump() 1043 const Value *V = cast<const Value *>(ValType); in dump() 1048 } else if (isa<const PseudoSourceValue *>(ValType)) in dump() 1049 dbgs() << cast<const PseudoSourceValue *>(ValType); in dump()
|