Home
last modified time | relevance | path

Searched refs:spirv (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DTargetAndABI.cpp22 spirv::TargetEnv::TargetEnv(spirv::TargetEnvAttr targetAttr) in TargetEnv()
24 for (spirv::Extension ext : targetAttr.getExtensions()) in TargetEnv()
28 for (spirv::Extension ext : in TargetEnv()
29 spirv::getImpliedExtensions(targetAttr.getVersion())) in TargetEnv()
32 for (spirv::Capability cap : targetAttr.getCapabilities()) { in TargetEnv()
36 for (spirv::Capability c : spirv::getRecursiveImpliedCapabilities(cap)) in TargetEnv()
41 spirv::Version spirv::TargetEnv::getVersion() const { in getVersion()
45 bool spirv::TargetEnv::allows(spirv::Capability capability) const { in allows()
49 Optional<spirv::Capability>
50 spirv::TargetEnv::allows(ArrayRef<spirv::Capability> caps) const { in allows()
[all …]
DSPIRVLowering.cpp39 LabelT label, const spirv::TargetEnv &targetEnv, in checkExtensionRequirements()
40 const spirv::SPIRVType::ExtensionArrayRefVector &candidates) { in checkExtensionRequirements()
46 for (spirv::Extension ext : ors) in checkExtensionRequirements()
47 extStrings.push_back(spirv::stringifyExtension(ext)); in checkExtensionRequirements()
66 LabelT label, const spirv::TargetEnv &targetEnv, in checkCapabilityRequirements()
67 const spirv::SPIRVType::CapabilityArrayRefVector &candidates) { in checkCapabilityRequirements()
73 for (spirv::Capability cap : ors) in checkCapabilityRequirements()
74 capStrings.push_back(spirv::stringifyCapability(cap)); in checkCapabilityRequirements()
110 MAP_FN(spirv::StorageClass::Generic, 1) \
111 MAP_FN(spirv::StorageClass::StorageBuffer, 0) \
[all …]
DSPIRVAttributes.cpp27 namespace spirv { namespace
115 spirv::InterfaceVarABIAttr
116 spirv::InterfaceVarABIAttr::get(uint32_t descriptorSet, uint32_t binding, in get()
117 Optional<spirv::StorageClass> storageClass, in get()
128 spirv::InterfaceVarABIAttr
129 spirv::InterfaceVarABIAttr::get(IntegerAttr descriptorSet, IntegerAttr binding, in get()
136 StringRef spirv::InterfaceVarABIAttr::getKindName() { in getKindName()
140 uint32_t spirv::InterfaceVarABIAttr::getBinding() { in getBinding()
144 uint32_t spirv::InterfaceVarABIAttr::getDescriptorSet() { in getDescriptorSet()
148 Optional<spirv::StorageClass> spirv::InterfaceVarABIAttr::getStorageClass() { in getStorageClass()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/val/
Dval_limits_test.cpp147 std::ostringstream spirv; in TEST_F() local
148 spirv << header << R"( in TEST_F()
152 spirv << " %1"; in TEST_F()
154 CompileSuccessfully(spirv.str()); in TEST_F()
159 std::ostringstream spirv; in TEST_F() local
160 spirv << header << R"( in TEST_F()
164 spirv << " %1"; in TEST_F()
166 CompileSuccessfully(spirv.str()); in TEST_F()
174 std::ostringstream spirv; in TEST_F() local
175 spirv << header << R"( in TEST_F()
[all …]
Dval_id_test.cpp183 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
188 CompileSuccessfully(spirv.c_str()); in TEST_F()
193 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
197 CompileSuccessfully(spirv.c_str()); in TEST_F()
201 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
204 CompileSuccessfully(spirv.c_str()); in TEST_F()
211 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
215 CompileSuccessfully(spirv.c_str()); in TEST_F()
224 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
230 CompileSuccessfully(spirv.c_str()); in TEST_F()
[all …]
Dval_decoration_test.cpp49 std::string spirv = R"( in TEST_F() local
60 CompileSuccessfully(spirv); in TEST_F()
70 std::string spirv = R"( in TEST_F() local
84 CompileSuccessfully(spirv); in TEST_F()
103 std::string spirv = R"( in TEST_F() local
118 CompileSuccessfully(spirv); in TEST_F()
127 std::string spirv = R"( in TEST_F() local
149 CompileSuccessfully(spirv); in TEST_F()
167 std::string spirv = R"( in TEST_F() local
180 CompileSuccessfully(spirv); in TEST_F()
[all …]
Dval_memory_test.cpp47 std::string spirv = R"( in TEST_F() local
62 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
76 std::string spirv = R"( in TEST_F() local
93 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
98 std::string spirv = R"( in TEST_F() local
116 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
130 std::string spirv = R"( in TEST_F() local
150 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
155 std::string spirv = R"( in TEST_F() local
176 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_limits_test.cpp147 std::ostringstream spirv; in TEST_F() local
148 spirv << header << R"( in TEST_F()
152 spirv << " %1"; in TEST_F()
154 CompileSuccessfully(spirv.str()); in TEST_F()
159 std::ostringstream spirv; in TEST_F() local
160 spirv << header << R"( in TEST_F()
164 spirv << " %1"; in TEST_F()
166 CompileSuccessfully(spirv.str()); in TEST_F()
174 std::ostringstream spirv; in TEST_F() local
175 spirv << header << R"( in TEST_F()
[all …]
Dval_id_test.cpp183 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
188 CompileSuccessfully(spirv.c_str()); in TEST_F()
193 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
197 CompileSuccessfully(spirv.c_str()); in TEST_F()
201 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
204 CompileSuccessfully(spirv.c_str()); in TEST_F()
211 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
215 CompileSuccessfully(spirv.c_str()); in TEST_F()
224 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
230 CompileSuccessfully(spirv.c_str()); in TEST_F()
[all …]
Dval_decoration_test.cpp49 std::string spirv = R"( in TEST_F() local
60 CompileSuccessfully(spirv); in TEST_F()
70 std::string spirv = R"( in TEST_F() local
84 CompileSuccessfully(spirv); in TEST_F()
103 std::string spirv = R"( in TEST_F() local
118 CompileSuccessfully(spirv); in TEST_F()
127 std::string spirv = R"( in TEST_F() local
149 CompileSuccessfully(spirv); in TEST_F()
167 std::string spirv = R"( in TEST_F() local
180 CompileSuccessfully(spirv); in TEST_F()
[all …]
Dval_memory_test.cpp37 std::string spirv = R"( in TEST_F() local
52 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
66 std::string spirv = R"( in TEST_F() local
83 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
88 std::string spirv = R"( in TEST_F() local
106 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
120 std::string spirv = R"( in TEST_F() local
140 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
145 std::string spirv = R"( in TEST_F() local
166 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_limits_test.cpp147 std::ostringstream spirv; in TEST_F() local
148 spirv << header << R"( in TEST_F()
152 spirv << " %1"; in TEST_F()
154 CompileSuccessfully(spirv.str()); in TEST_F()
159 std::ostringstream spirv; in TEST_F() local
160 spirv << header << R"( in TEST_F()
164 spirv << " %1"; in TEST_F()
166 CompileSuccessfully(spirv.str()); in TEST_F()
174 std::ostringstream spirv; in TEST_F() local
175 spirv << header << R"( in TEST_F()
[all …]
Dval_id_test.cpp183 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
188 CompileSuccessfully(spirv.c_str()); in TEST_F()
193 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
197 CompileSuccessfully(spirv.c_str()); in TEST_F()
201 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
204 CompileSuccessfully(spirv.c_str()); in TEST_F()
211 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
215 CompileSuccessfully(spirv.c_str()); in TEST_F()
224 std::string spirv = kGLSL450MemoryModel + R"( in TEST_F() local
230 CompileSuccessfully(spirv.c_str()); in TEST_F()
[all …]
Dval_decoration_test.cpp49 std::string spirv = R"( in TEST_F() local
60 CompileSuccessfully(spirv); in TEST_F()
70 std::string spirv = R"( in TEST_F() local
84 CompileSuccessfully(spirv); in TEST_F()
103 std::string spirv = R"( in TEST_F() local
118 CompileSuccessfully(spirv); in TEST_F()
127 std::string spirv = R"( in TEST_F() local
149 CompileSuccessfully(spirv); in TEST_F()
167 std::string spirv = R"( in TEST_F() local
180 CompileSuccessfully(spirv); in TEST_F()
[all …]
Dval_memory_test.cpp47 std::string spirv = R"( in TEST_F() local
62 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
76 std::string spirv = R"( in TEST_F() local
93 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
98 std::string spirv = R"( in TEST_F() local
116 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
130 std::string spirv = R"( in TEST_F() local
150 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
155 std::string spirv = R"( in TEST_F() local
176 CompileSuccessfully(spirv.c_str(), SPV_ENV_VULKAN_1_1); in TEST_F()
[all …]
/external/skqp/third_party/spirv-tools/
DBUILD.gn6 script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
8 "../externals/spirv-headers/include/spirv/$version/spirv.core.grammar.json",
11 "$root_out_dir/spirv-tools/core.insts-$version.inc",
12 "$root_out_dir/spirv-tools/operand.kinds-$version.inc",
15 "--spirv-core-grammar=" + rebase_path(
16 "../externals/spirv-headers/include/spirv/$version/spirv.core.grammar.json",
19 rebase_path("$root_out_dir/spirv-tools/core.insts-$version.inc",
22 rebase_path("$root_out_dir/spirv-tools/operand.kinds-$version.inc",
41 script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
43 "../externals/spirv-headers/include/spirv/1.0/extinst.glsl.std.450.grammar.json",
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dtext_to_binary.memory_test.cpp104 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
105 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
108 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
109 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
113 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
114 std::string err = CompileFailure(spirv, SPV_ENV_UNIVERSAL_1_3); in TEST_F()
121 std::string spirv = "%2 = OpPtrNotEqual %1 %3 %4\n"; in TEST_F() local
122 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
125 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
126 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/
Dtext_to_binary.memory_test.cpp104 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
105 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
108 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
109 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
113 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
114 std::string err = CompileFailure(spirv, SPV_ENV_UNIVERSAL_1_3); in TEST_F()
121 std::string spirv = "%2 = OpPtrNotEqual %1 %3 %4\n"; in TEST_F() local
122 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
125 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
126 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dtext_to_binary.memory_test.cpp104 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
105 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
108 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
109 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
113 std::string spirv = "%2 = OpPtrEqual %1 %3 %4\n"; in TEST_F() local
114 std::string err = CompileFailure(spirv, SPV_ENV_UNIVERSAL_1_3); in TEST_F()
121 std::string spirv = "%2 = OpPtrNotEqual %1 %3 %4\n"; in TEST_F() local
122 EXPECT_THAT(CompiledInstructions(spirv, SPV_ENV_UNIVERSAL_1_4), in TEST_F()
125 spirv, SPV_BINARY_TO_TEXT_OPTION_NONE, SPV_ENV_UNIVERSAL_1_4); in TEST_F()
126 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Headers/
DBUILD.bazel11 srcs = ["include/spirv/1.0/spirv.core.grammar.json"],
16 srcs = ["include/spirv/1.0/extinst.glsl.std.450.grammar.json"],
21 srcs = ["include/spirv/1.0/extinst.opencl.std.100.grammar.json"],
26 srcs = ["include/spirv/1.1/spirv.core.grammar.json"],
31 srcs = ["include/spirv/1.1/extinst.glsl.std.450.grammar.json"],
36 srcs = ["include/spirv/1.1/extinst.opencl.std.100.grammar.json"],
41 srcs = ["include/spirv/1.2/spirv.core.grammar.json"],
46 srcs = ["include/spirv/1.2/extinst.glsl.std.450.grammar.json"],
51 srcs = ["include/spirv/1.2/extinst.opencl.std.100.grammar.json"],
56 srcs = ["include/spirv/unified1/spirv.core.grammar.json"],
[all …]
/external/swiftshader/third_party/SPIRV-Headers/
DBUILD.bazel11 srcs = ["include/spirv/1.0/spirv.core.grammar.json"],
16 srcs = ["include/spirv/1.0/extinst.glsl.std.450.grammar.json"],
21 srcs = ["include/spirv/1.0/extinst.opencl.std.100.grammar.json"],
26 srcs = ["include/spirv/1.1/spirv.core.grammar.json"],
31 srcs = ["include/spirv/1.1/extinst.glsl.std.450.grammar.json"],
36 srcs = ["include/spirv/1.1/extinst.opencl.std.100.grammar.json"],
41 srcs = ["include/spirv/1.2/spirv.core.grammar.json"],
46 srcs = ["include/spirv/1.2/extinst.glsl.std.450.grammar.json"],
51 srcs = ["include/spirv/1.2/extinst.opencl.std.100.grammar.json"],
56 srcs = ["include/spirv/unified1/spirv.core.grammar.json"],
[all …]
/external/angle/third_party/vulkan-deps/spirv-headers/src/
DBUILD.bazel11 srcs = ["include/spirv/1.0/spirv.core.grammar.json"],
16 srcs = ["include/spirv/1.0/extinst.glsl.std.450.grammar.json"],
21 srcs = ["include/spirv/1.0/extinst.opencl.std.100.grammar.json"],
26 srcs = ["include/spirv/1.1/spirv.core.grammar.json"],
31 srcs = ["include/spirv/1.1/extinst.glsl.std.450.grammar.json"],
36 srcs = ["include/spirv/1.1/extinst.opencl.std.100.grammar.json"],
41 srcs = ["include/spirv/1.2/spirv.core.grammar.json"],
46 srcs = ["include/spirv/1.2/extinst.glsl.std.450.grammar.json"],
51 srcs = ["include/spirv/1.2/extinst.opencl.std.100.grammar.json"],
56 srcs = ["include/spirv/unified1/spirv.core.grammar.json"],
[all …]
/external/angle/src/compiler/translator/
DBuildSPIRV.h17 namespace spirv = angle::spirv; variable
108 spirv::IdRef id;
109 spirv::IdRefList idList;
119 spirv::IdRef id;
207 spirv::IdRef id;
233 spirv::IdRef labelId;
237 spirv::Blob localVariables;
241 spirv::Blob body;
264 std::vector<spirv::IdRef> blockIds;
297 spirv::IdRef getNewId(const SpirvDecorations &decorations);
[all …]
DOutputSPIRV.cpp44 SpirvIdOrLiteral(const spirv::IdRef idIn) : id(idIn) {} in SpirvIdOrLiteral()
45 SpirvIdOrLiteral(const spirv::LiteralInteger literalIn) : literal(literalIn) {} in SpirvIdOrLiteral()
47 spirv::IdRef id;
48 spirv::LiteralInteger literal;
78 spirv::IdRef dynamicComponent;
82 spirv::IdRef baseTypeId;
83 spirv::IdRef preSwizzleTypeId;
84 spirv::IdRef postSwizzleTypeId;
85 spirv::IdRef postDynamicComponentTypeId;
89 spirv::IdRef accessChainId;
[all …]
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
DLowerABIAttributesPass.cpp26 static spirv::GlobalVariableOp
27 createGlobalVarForEntryPointArgument(OpBuilder &builder, spirv::FuncOp funcOp, in createGlobalVarForEntryPointArgument()
29 spirv::InterfaceVarABIAttr abiInfo) { in createGlobalVarForEntryPointArgument()
30 auto spirvModule = funcOp->getParentOfType<spirv::ModuleOp>(); in createGlobalVarForEntryPointArgument()
43 if (varType.cast<spirv::SPIRVType>().isScalarOrVector()) { in createGlobalVarForEntryPointArgument()
48 spirv::PointerType::get(spirv::StructType::get(varType), *storageClass); in createGlobalVarForEntryPointArgument()
50 auto varPtrType = varType.cast<spirv::PointerType>(); in createGlobalVarForEntryPointArgument()
51 auto varPointeeType = varPtrType.getPointeeType().cast<spirv::StructType>(); in createGlobalVarForEntryPointArgument()
55 VulkanLayoutUtils::decorateType(varPointeeType).cast<spirv::StructType>(); in createGlobalVarForEntryPointArgument()
61 spirv::PointerType::get(varPointeeType, varPtrType.getStorageClass()); in createGlobalVarForEntryPointArgument()
[all …]

12345678910>>...33