Home
last modified time | relevance | path

Searched refs:stmt (Results 1 – 18 of 18) sorted by relevance

/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/
Ddecoder.py141 cgen.stmt(
144 cgen.stmt(
163 cgen.stmt("boxed_%s_preserve = %s" % (param.paramName, param.paramName))
164 cgen.stmt("%s = unbox_%s(%s)" % (param.paramName, param.typeName, param.paramName))
169 cgen.stmt("boxed_%s_preserve[i] = %s[i]" % (param.paramName, param.paramName))
170 …cgen.stmt("((%s*)(%s))[i] = unbox_%s(%s[i])" % (param.typeName, param.paramName, param.typeName, p…
191 cgen.stmt("// Begin {} wrapped dispatchable handle unboxing for {}".format(
208 cgen.stmt("auto unboxed_%s = unbox_%s(%s)" %
210 cgen.stmt("auto vk = dispatch_%s(%s)" %
212 cgen.stmt("// End manual dispatchable handle unboxing for %s" % param.paramName)
[all …]
Dencoder.py132 cgen.stmt("VALIDATE_VOID(%s)" % callExpr)
134 cgen.stmt("VALIDATE_RET(%s, %s, %s)" % \
141 cgen.stmt( \
150 cgen.stmt(make_event_handler_call( \
165 cgen.stmt("(void)%s" % param.paramName)
170 cgen.stmt("/* is handle, possibly out */")
181 cgen.stmt("(void)%s" % param.paramName)
184 cgen.stmt("/* is handle, possibly out */")
198 cgen.stmt("(void)%s" % param.paramName)
205 cgen.stmt("(void)%s" % param.paramName)
[all …]
Dsubdecode.py34 cgen.stmt(
37 cgen.stmt(
47 cgen.stmt("%s%s stack_%s[%s]" % (
67 cgen.stmt("boxed_%s_preserve = %s" %
69 cgen.stmt("%s = unbox_%s(%s)" %
75 cgen.stmt("boxed_%s_preserve[i] = %s[i]" %
77 cgen.stmt("((%s*)(%s))[i] = unbox_%s(%s[i])" % (param.typeName,
108 cgen.stmt(
122 cgen.stmt(
136 cgen.stmt("auto unboxed_%s = unbox_%s(%s)" %
[all …]
Ddecodersnapshot.py111 …cgen.stmt("const VkMemoryDedicatedAllocateInfo* dedicatedAllocateInfo = vk_find_struct<VkMemoryDed…
114 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s)" …
118 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s)" …
124 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s)" …
128 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s, V…
134 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)(%s + i), %s, (uint64_t)(uintptr_t…
140 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s)" …
143 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s)" …
148 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)%s, V…
150 …cgen.stmt("mReconstruction.addHandleDependency((const uint64_t*)%s, %s, (uint64_t)(uintptr_t)((%s)…
[all …]
Ddispatch.py225 cgen.stmt( \
230 cgen.stmt( \
235 cgen.stmt( \
252 self.cgenImpl.stmt("memset(out, 0x0, sizeof(VulkanDispatch))")
254 self.cgenImpl.stmt("void* lib = dlOpenFunc()")
255 self.cgenImpl.stmt("if (!lib) return")
282 self.cgenImpl.stmt("memset(out, 0x0, sizeof(VulkanDispatch))")
307 self.cgenImpl.stmt("memset(out, 0x0, sizeof(VulkanDispatch))")
328 … cgen.stmt("fprintf(stderr, \"%s check failed: %s not found\\n\")" % (featureToCheck, apiName))
329 cgen.stmt("good = false")
[all …]
Dfunctable.py324 cgen.stmt("%s = %s ? %s : %s" %
330 cgen.stmt("VK_FROM_HANDLE(%s, %s, %s)" %
357 … cgen.stmt("std::vector<%s> %s(%s)" % (param.typeName, internalArray, countParamName))
361 cgen.stmt("std::vector<std::vector<%s>> %s" % (param.typeName, internalArray))
363 cgen.stmt("std::vector<%s> %s" % (param.typeName, internalArray))
378 cgen.stmt("%s = %s" % (outName, inName))
387 … cgen.stmt("%s.push_back(std::vector<%s>())" % (internalNestedParamName(member), member.typeName))
391 cgen.stmt("%s = %s.data()" % (inArrayName, nestedOutName))
392 cgen.stmt("%s = %s.size()" % (countParamName, nestedOutName))
395 cgen.stmt("%s.reserve(%s)" % (nestedOutName, countParamName))
[all …]
Dfrontend.py55 codegen.stmt(
65 codegen.stmt("return %s" % VALIDATE_VAR_NAME)
67 codegen.stmt("return (%s)0" % retTypeName)
69 codegen.stmt("return")
72 codegen.stmt("// VULKAN_STREAM_GET()")
73 codegen.stmt("%s* %s = nullptr" % (VULKAN_STREAM_TYPE,
85 codegen.stmt("return res")
Ddeepcopy.py109 self.cgen.stmt("%s = nullptr" % accessRhs)
112 self.cgen.stmt( \
128 self.cgen.stmt("%s = %s" % (lenAccessRhs, lenAccessLhs))
152 self.cgen.stmt("%s = nullptr" % accessRhs)
155 self.cgen.stmt( \
169 self.cgen.stmt("%s = nullptr" % accessRhs)
172 self.cgen.stmt( \
188 self.cgen.stmt("memcpy(%s, %s, %s)" % (accessRhs, accessLhs, bytesExpr))
202 self.cgen.stmt("%s = from->sType" % self.rootVarName)
205 self.cgen.stmt("const void* %s = %s" % (nextVar, self.inputVars[0]))
[all …]
Dextensionstructs.py84 cgen.stmt(
87 cgen.stmt("return asStructType")
94 cgen.stmt("return sizeof(%s)" % ext.name)
99 cgen.stmt("return sizeof(%s)" % ext.name)
102 cgen.stmt("return sizeof(%s)" % ext.name)
105 cgen.stmt("return 0")
113 … cgen.stmt("fprintf(stderr, \"Unhandled Vulkan structure type %d, aborting.\\n\", structType)")
114 cgen.stmt("GFXSTREAM_ABORT(::emugl::FatalError(::emugl::ABORT_REASON_OTHER))")
115 cgen.stmt("return (%s)0" % self.extensionStructSizeRetType.typeName)
Dreservedmarshaling.py103 self.cgen.stmt("*%s += %s" % (self.ptrVar, sizeExpr))
107 self.cgen.stmt("memcpy(*%s, %s%s, %s)" % (varname, cast, toStreamExpr, sizeExpr))
109 self.cgen.stmt("memcpy(%s%s, *%s, %s)" % (cast, toStreamExpr, varname, sizeExpr))
131 … self.cgen.stmt("%s::Stream::%s((uint8_t*)*%s)" % (streamNamespace, streamMethod, varname))
133 … self.cgen.stmt("%s::Stream::%s((uint8_t*)%s)" % (streamNamespace, streamMethod, toStreamExpr))
166 self.cgen.stmt("uint8_t* %s_ptr = (uint8_t*)(*%s)" % (handle64Var, self.ptrVar))
171 self.cgen.stmt("uint64_t %s" % handle64Var)
185 self.cgen.stmt(
189 … self.cgen.stmt("*%s = (%s)%s(*%s)" % (access, vulkanType.typeName, mapFunc, access))
195 … self.cgen.stmt("%s[k] = (%s)%s(%s[k])" % (access, vulkanType.typeName, mapFunc, access))
[all …]
Dmarshaling.py100 self.cgen.stmt(
124 self.cgen.stmt("uint64_t* %s" % handle64Var)
125 self.cgen.stmt(
132 self.cgen.stmt("uint64_t %s" % handle64Var)
139 self.cgen.stmt(
142 self.cgen.stmt(
148 self.cgen.stmt(
156 self.cgen.stmt(
177 self.cgen.stmt( \
208 self.cgen.stmt("%s %s" % (
[all …]
Dunbox.py66 cgen.stmt("BoxedHandleUnwrapMapping unboxMapping")
67 cgen.stmt("%s* res = (%s*)pool->alloc(sizeof(const %s))" % (name, name, name))
68 cgen.stmt("deepcopy_%s(pool, %s, %s)" % (name, self.toUnboxVar, "res"))
69 cgen.stmt("handlemap_%s(%s, %s)" % (name, "&unboxMapping", "res"))
70 cgen.stmt("return res")
Dcounting.py66 self.cgen.stmt("*%s += %s" % (self.countVar, sizeExpr))
92 self.cgen.stmt("uint64_t %s" % handle64Var)
160 self.cgen.stmt(
302 self.cgen.stmt(cleanupExpr)
387 self.cgen.stmt("size_t l = %s[i] ? strlen(%s[i]) : 0" % (access, access))
417 self.cgen.stmt("%s = %s" % (self.rootTypeVar, sTypeAccess))
487 self.cgen.stmt("%s %s = 1" % (letParamInfo.typeName, letParamInfo.paramName))
492 …self.cgen.stmt("%s = %s" % (letParamInfo.paramName, self.genFilterFunc(bodyExpr, self.currentStruc…
588 cgen.stmt("(void)%s" % self.featureBitsVar);
589 cgen.stmt("(void)%s" % self.rootTypeVar);
[all …]
Dtransform.py78 cgen.stmt("%s->deviceMemoryTransform_tohost(%s)" % \
81 cgen.stmt("%s->deviceMemoryTransform_fromhost(%s)" % \
93 cgen.stmt("%s->transformImpl_%s_%s(%s, %s)" % (resourceTrackerVarName,
249 self.codegen.stmt("class %s" % self.resourceTrackerTypeName)
307 cgen.stmt("(void)%s" % p.paramName)
Dhandlemap.py123 self.cgen.stmt("%s->mapHandles_%s(%s%s, %s)" % \
150 self.cgen.stmt( \
164 self.cgen.stmt(
237 cgen.stmt("(void)%s" % p.paramName)
Dtesting.py92 self.cgen.stmt("if (!(%s)) { %s(\"%s (Error: %s)\"); }" %
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/common/
Dcodegen.py316 def stmt(self, code): member in CodeGen
627 self.stmt("%s %s = (%s)0" % (retTypeName, retVar, retTypeName))
638 … self.stmt("if ((%s) == VK_ERROR_DEVICE_LOST) %sDeviceLost()" % (callLhs, globalStatePrefix))
642 self.stmt(
646 self.stmt(
739 self.stmt("%s = (%s)%s%s->%s()" %
746 self.stmt("%s %s = (%s)%s%s" %
749 self.stmt("%s->%s(%s)" %
794 self.stmt("memcpy((%s*)&%s, %s, %s)" %
799 self.stmt("%s::Stream::%s((uint8_t*)&%s)" % (
[all …]
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dcmake_core.cmake288 " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-extra-semi-stmt>"