• Home
  • Raw
  • Download

Lines Matching +full:opencl +full:- +full:spirv

1 LOCAL_PATH := $(call my-dir)
2 SPVTOOLS_OUT_PATH=$(if $(call host-path-is-absolute,$(TARGET_OUT)),$(TARGET_OUT),$(abspath $(TARGET…
5 SPVHEADERS_LOCAL_PATH := $(LOCAL_PATH)/external/spirv-headers
192 SPV_COREUNIFIED1_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/spirv.core.grammar.json
193 SPV_GLSL_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.glsl.std.450.grammar.json
194 SPV_OPENCL_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.opencl.std.100.grammar.j…
195 SPV_DEBUGINFO_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.debuginfo.grammar.json
196 SPV_CLDEBUGINFO100_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.opencl.debuginfo…
197 SPV_VKDEBUGINFO100_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.nonsemantic.shad…
200 $(call generate-file-dir,$(1)/core.insts-unified1.inc)
201 $(1)/core.insts-unified1.inc $(1)/operand.kinds-unified1.inc \
203 $(1)/opencl.std.insts.inc \
212 --spirv-core-grammar=$(SPV_COREUNIFIED1_GRAMMAR) \
213 --extinst-glsl-grammar=$(SPV_GLSL_GRAMMAR) \
214 --extinst-opencl-grammar=$(SPV_OPENCL_GRAMMAR) \
215 --extinst-debuginfo-grammar=$(SPV_DEBUGINFO_GRAMMAR) \
216 --extinst-cldebuginfo100-grammar=$(SPV_CLDEBUGINFO100_GRAMMAR) \
217 --core-insts-output=$(1)/core.insts-unified1.inc \
218 --glsl-insts-output=$(1)/glsl.std.450.insts.inc \
219 --opencl-insts-output=$(1)/opencl.std.insts.inc \
220 --operand-kinds-output=$(1)/operand.kinds-unified1.inc
222 $(LOCAL_PATH)/source/opcode.cpp: $(1)/core.insts-unified1.inc
223 $(LOCAL_PATH)/source/operand.cpp: $(1)/operand.kinds-unified1.inc
226 $(1)/opencl.std.insts.inc \
228 $(1)/opencl.debuginfo.100.insts.inc \
230 $(1)/spv-amd-gcn-shader.insts.inc \
231 $(1)/spv-amd-shader-ballot.insts.inc \
232 $(1)/spv-amd-shader-explicit-vertex-parameter.insts.inc \
233 $(1)/spv-amd-shader-trinary-minmax.insts.inc
235 $(1)/spv-amd-shader-ballot.insts.inc
241 # Generate language-specific headers. So far we only generate C headers
245 $(call generate-file-dir,$(1)/$(2).h)
250 --extinst-grammar=$(3) \
251 --extinst-output-path=$(1)/$(2).h
256 # We generate language-specific headers for DebugInfo and OpenCL.DebugInfo.100
263 $(call generate-file-dir,$(1)/$(2).insts.inc)
266 $(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.$(2).grammar.json
268--extinst-vendor-grammar=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.$(2).grammar.json…
269 --vendor-insts-output=$(1)/$(2).insts.inc \
270 --vendor-operand-kind-prefix=$(3)
274 # Vendor and debug extended instruction sets, with grammars from SPIRV-Tools source tree.
276 $(eval $(call gen_spvtools_vendor_tables,$(SPVTOOLS_OUT_PATH),opencl.debuginfo.100,"CLDEBUG100_"))
278 $(eval $(call gen_spvtools_vendor_tables,$(SPVTOOLS_OUT_PATH),spv-amd-gcn-shader,""))
279 $(eval $(call gen_spvtools_vendor_tables,$(SPVTOOLS_OUT_PATH),spv-amd-shader-ballot,""))
280 $(eval $(call gen_spvtools_vendor_tables,$(SPVTOOLS_OUT_PATH),spv-amd-shader-explicit-vertex-parame…
281 $(eval $(call gen_spvtools_vendor_tables,$(SPVTOOLS_OUT_PATH),spv-amd-shader-trinary-minmax,""))
285 $(call generate-file-dir,$(1)/extension_enum.inc.inc)
290 --spirv-core-grammar=$(SPV_COREUNIFIED1_GRAMMAR) \
291 --extinst-debuginfo-grammar=$(SPV_DEBUGINFO_GRAMMAR) \
292 --extinst-cldebuginfo100-grammar=$(SPV_CLDEBUGINFO100_GRAMMAR) \
293 --extension-enum-output=$(1)/extension_enum.inc \
294 --enum-string-mapping-output=$(1)/enum_string_mapping.inc
295 @echo "[$(TARGET_ARCH_ABI)] Generate enum<->string mapping <= grammar JSON files"
305 $(call generate-file-dir,$(1)/dummy_filename)
306 $(1)/build-version.inc: \
310 $(LOCAL_PATH)/CHANGES $(1)/build-version.inc
311 @echo "[$(TARGET_ARCH_ABI)] Generate : build-version.inc <= CHANGES"
312 $(LOCAL_PATH)/source/software_version.cpp: $(1)/build-version.inc
317 $(call generate-file-dir,$(1)/dummy_filename)
320 $(SPVHEADERS_LOCAL_PATH)/include/spirv/spir-v.xml
322 --xml=$(SPVHEADERS_LOCAL_PATH)/include/spirv/spir-v.xml \
323 --generator-output=$(1)/generators.inc
324 @echo "[$(TARGET_ARCH_ABI)] Generate : generators.inc <= spir-v.xml"
330 LOCAL_MODULE := SPIRV-Tools
337 LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti -Werror
342 LOCAL_MODULE := SPIRV-Tools-opt
348 LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti -Werror
349 LOCAL_STATIC_LIBRARIES:=SPIRV-Tools