Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KhronosGroup/SPIRV-Tools
/ functions
Functions
7,821 in github.com/KhronosGroup/SPIRV-Tools
⨍
Functions
7,821
◇
Types & classes
1,346
↓ 2 callers
Function
IsImplicitLod
source/val/validate_image.cpp:125
↓ 2 callers
Function
IsInCorrectFormForGCDTest
Check if node is affine, ie in the form: a0*i0 + a1*i1 + ... an*in + c and contains only the following types of nodes: SERecurrentNode, SEAddNode and
source/opt/loop_dependence.cpp:71
↓ 2 callers
Function
IsInt64ImageFormat
source/val/validate_image.cpp:212
↓ 2 callers
Method
IsInteresting
test/reduce/reducer_test.cpp:44
↓ 2 callers
Function
IsInterfaceVariable
source/val/validate_mesh_shading.cpp:26
↓ 2 callers
Method
IsMarkedForRemoval
Returns whether or not this loop has been marked for removal.
source/opt/loop_descriptor.h:280
↓ 2 callers
Function
IsMerge
Returns true if |id| is the merge target of a merge instruction.
source/opt/block_merge_util.cpp:35
↓ 2 callers
Function
IsMergeOrContinue
source/fuzz/fuzzer_util.cpp:560
↓ 2 callers
Method
IsNop
source/opt/instruction.h:744
↓ 2 callers
Function
IsOpLineInst
source/opt/reflect.h:39
↓ 2 callers
Function
IsPermutationOfRange
source/fuzz/fuzzer_util.cpp:982
↓ 2 callers
Method
IsPostDominator
Returns true if this tree is a post dominator tree.
source/opt/dominator_tree.h:203
↓ 2 callers
Method
IsQCOMImageProcessingTextureConsumer
Check if instruction 'id' is a consumer of a texture decorated with a QCOM image processing decoration
source/val/validation_state.h:998
↓ 2 callers
Method
IsReady
Returns true if this Phi candidate is ready to be emitted.
source/opt/ssa_rewrite_pass.h:84
↓ 2 callers
Function
IsScalarTypeOrOrArrayOfScalarType
source/val/validate_tensor.cpp:47
↓ 2 callers
Function
IsSeparator
Returns true if the given char is ':', '\0' or considered as blank space (i.e.: '\n', '\r', '\v', '\t', '\f' and ' ').
source/opt/set_spec_constant_default_value_pass.cpp:365
↓ 2 callers
Function
IsSparse
Returns true if opcode is *ImageSparse*, false otherwise.
source/val/validate_image.cpp:893
↓ 2 callers
Method
IsStructuredExit
source/val/construct.cpp:120
↓ 2 callers
Function
IsSupportGuaranteedOpenCL_1_2
source/val/validate_capability.cpp:234
↓ 2 callers
Function
IsSupportGuaranteedOpenCL_2_0
source/val/validate_capability.cpp:252
↓ 2 callers
Function
IsSupportGuaranteedVulkan_1_0
source/val/validate_capability.cpp:30
↓ 2 callers
Function
IsSupportGuaranteedVulkan_1_1
source/val/validate_capability.cpp:48
↓ 2 callers
Function
IsSupportGuaranteedVulkan_1_2
source/val/validate_capability.cpp:60
↓ 2 callers
Function
IsSupportGuaranteedVulkan_1_3
source/val/validate_capability.cpp:71
↓ 2 callers
Function
IsSupportOptionalVulkan_1_0
source/val/validate_capability.cpp:115
↓ 2 callers
Function
IsSupportOptionalVulkan_1_1
source/val/validate_capability.cpp:158
↓ 2 callers
Function
IsSupportOptionalVulkan_1_2
source/val/validate_capability.cpp:188
↓ 2 callers
Function
IsSupportOptionalVulkan_1_3
Vulkan 1.3 only added required features.
source/val/validate_capability.cpp:225
↓ 2 callers
Method
IsSupportedLoop
source/opt/loop_dependence_helpers.cpp:452
↓ 2 callers
Method
IsTargetVar
source/opt/mem_pass.cpp:278
↓ 2 callers
Method
IsTensorType
source/val/validation_state.cpp:1571
↓ 2 callers
Function
IsTypeOfStructuredBuffer
source/opt/desc_sroa_util.cpp:86
↓ 2 callers
Method
IsUniqueType
source/opt/types.cpp:89
↓ 2 callers
Method
IsUnsigned64BitHandle
Either a 32 bit 2-component uint vector or a 64 bit uint scalar
source/val/validation_state.cpp:1544
↓ 2 callers
Method
IsUnsignedIntScalarOrVectorType
source/val/validation_state.cpp:1294
↓ 2 callers
Function
IsValidResult
source/opt/folding_rules.cpp:107
↓ 2 callers
Method
IsValidStorageClass
source/val/validation_state.cpp:2173
↓ 2 callers
Method
IsWgslCompatible
Returns true if all transformations should be compatible with WGSL.
source/fuzz/fuzzer_context.h:124
↓ 2 callers
Function
LookupOpcodeForEnvInternal
source/table2.cpp:206
↓ 2 callers
Function
MakeConstantUniformReplacement
source/fuzz/force_render_red.cpp:146
↓ 2 callers
Method
MakeFreshId
Generate a fresh id in this mapping's domain.
source/diff/diff.cpp:126
↓ 2 callers
Function
MakeLiteralNumberOperand
Returns a parsed operand for a literal unsigned integer value at the given word offset within an instruction.
test/binary_parse_test.cpp:168
↓ 2 callers
Function
MakeLiteralStringOperand
Returns a parsed operand for a literal string value at the given word offset within an instruction.
test/binary_parse_test.cpp:175
↓ 2 callers
Function
MakeModuleHavingStruct
Returns the assembly for a SPIR-V module with a struct declaration with the given number of members.
test/cpp_interface_test.cpp:189
↓ 2 callers
Function
MakeSetClosedSSA
Make the set |blocks| closed SSA. The set is closed SSA if all the uses outside the set are phi instructions in exiting basic block set (hold by |lcss
source/opt/loop_utils.cpp:283
↓ 2 callers
Method
MappedSrcId
source/diff/diff.cpp:156
↓ 2 callers
Method
MarkComplete
Marks this phi candidate as complete.
source/opt/ssa_rewrite_pass.h:81
↓ 2 callers
Function
MaybeGetOpConstant
source/fuzz/fuzzer_util.cpp:47
↓ 2 callers
Function
MergeAddAddArithmetic
Folds addition of an addition where each operation has a constant operand. Cases: (x + 2) + 2 = x + 4 (2 + x) + 2 = x + 4 2 + (x + 2) = x + 4 2 + (2 +
source/opt/folding_rules.cpp:1247
↓ 2 callers
Function
MergeAddNegateArithmetic
Folds addition, where one side is a negation. (-x) + y = y - x y + (-x) = y - x
source/opt/folding_rules.cpp:1166
↓ 2 callers
Function
MergeAddSubArithmetic
Folds addition of a subtraction where each operation has a constant operand. Cases: (x - 2) + 2 = x + 0 (2 - x) + 2 = 4 - x 2 + (x - 2) = x + 0 2 + (2
source/opt/folding_rules.cpp:1300
↓ 2 callers
Function
MergeBlocksReductionPassTest_LoopReturn_Helper
test/reduce/merge_blocks_test.cpp:512
↓ 2 callers
Function
MergeGenericAddSubArithmetic
Folds addition of a subtraction where the subtrahend is equal to the other addend. Return a copy of the minuend. Accepts generic (const and non-const)
source/opt/folding_rules.cpp:1534
↓ 2 callers
Function
MergeGenericAddendSub
Helper function for MergeGenericAddSubArithmetic. If |addend| and subtrahend of |sub| is the same, merge to copy of minuend of |sub|.
source/opt/folding_rules.cpp:1510
↓ 2 callers
Function
MergeMulMulArithmetic
Merges consecutive multiplies where each contains one constant operand. Cases: 2 * (x * 2) = x * 4 2 * (2 * x) = x * 4 (x * 2) * 2 = x * 4 (2 * x) * 2
source/opt/folding_rules.cpp:755
↓ 2 callers
Function
MergeMulNegateArithmetic
Merges multiply of constant and negation. Cases: (-x) * 2 = x * -2 2 * (-x) = x * -2
source/opt/folding_rules.cpp:892
↓ 2 callers
Function
MergeNegateAddSubArithmetic
Merges negate into a add or sub operation if that operation contains a constant operand. Cases: -(x + 2) = -2 - x -(2 + x) = -2 - x -(x - 2) = 2 - x -
source/opt/folding_rules.cpp:509
↓ 2 callers
Function
MergeNegateArithmetic
Elides consecutive negate instructions.
source/opt/folding_rules.cpp:407
↓ 2 callers
Function
MergeNegateMulDivArithmetic
Merges negate into a mul or div operation if that operation contains a constant operand. Cases: -(x * 2) = x * -2 -(2 * x) = x * -2 -(x / 2) = x / -2
source/opt/folding_rules.cpp:442
↓ 2 callers
Function
MergeSubAddArithmetic
Folds subtraction of an addition where each operand has a constant operand. Cases: (x + 2) - 2 = x + 0 (2 + x) - 2 = x + 0 2 - (x + 2) = 0 - x 2 - (2
source/opt/folding_rules.cpp:1365
↓ 2 callers
Function
MergeSubNegateArithmetic
Folds subtraction, where one side is a negation. Cases: (-x) - 2 = -2 - x y - (-x) = x + y
source/opt/folding_rules.cpp:1200
↓ 2 callers
Function
MergeSubSubArithmetic
Folds subtraction of a subtraction where each operand has a constant operand. Cases: (x - 2) - 2 = x - 4 (2 - x) - 2 = 0 - x 2 - (x - 2) = 4 - x 2 - (
source/opt/folding_rules.cpp:1436
↓ 2 callers
Function
NegateFPConst
Returns a constants with the value |-val| of the given type. Only works for 32-bit and 64-bit float point types. Returns |nullptr| if an error occur
source/opt/const_folding_rules.cpp:78
↓ 2 callers
Function
NegateFloatingPointConstant
Returns the negation of |c|. |c| must be a 32 or 64 bit floating point constant.
source/opt/folding_rules.cpp:247
↓ 2 callers
Function
NegateIntegerConstant
Negates the integer constant |c|. Returns the id of the defining instruction.
source/opt/folding_rules.cpp:268
↓ 2 callers
Function
NumConsumedComponents
Returns the number of components consumed by types that support a component decoration.
source/val/validate_interfaces.cpp:230
↓ 2 callers
Function
NumConsumedLocations
This function assumes a base location has been determined already. As such any further location decorations are invalid. TODO: if this code turns out
source/val/validate_interfaces.cpp:148
↓ 2 callers
Method
Parallel
Parallel indicates that the system is now allowed to process other requests in parallel with this one. It is safe to call any number of times, but mus
utils/vscode/src/lsp/jsonrpc2/jsonrpc2.go:226
↓ 2 callers
Function
ParseCsv
Parses a CSV source string for the purpose of this extension. Required columns must be known in advance and supplied as the required_cols argument --
source/link/fnvar.cpp:42
↓ 2 callers
Function
ParseFlags
Parses command-line flags. |argc| contains the number of command-line flags. |argv| points to an array of strings holding the flags. |optimizer| is th
tools/opt/opt.cpp:749
↓ 2 callers
Function
ParseNumberUntilSeparator
Reads characters starting from |str| until it meets a separator. Parses a number from the characters and stores it into |number|. Returns the pointer
source/opt/convert_to_sampled_image_pass.cpp:45
↓ 2 callers
Function
ParseTransformations
tools/fuzz/fuzz.cpp:442
↓ 2 callers
Function
PerformFloatingPointOperation
Performs |input1| |opcode| |input2| and returns the merged constant result id. Returns 0 if the result is not a valid value. The input types must be F
source/opt/folding_rules.cpp:592
↓ 2 callers
Function
PerformIntegerOperation
Performs |input1| |opcode| |input2| and returns the merged constant result id. Returns 0 if the result is not a valid value. The input types must be I
source/opt/folding_rules.cpp:641
↓ 2 callers
Method
PopIndirection
Change |this| to now represent the first enclosing object to which it belongs. (Remove the last element off the access_chain). It is invalid to call
source/opt/copy_prop_arrays.h:94
↓ 2 callers
Method
PostModificationCleanup
Add and remove loops which have been marked for addition and removal to maintain the state of the loop descriptor class.
source/opt/loop_descriptor.cpp:944
↓ 2 callers
Function
PreambleAssembly
Returns the initial part of the assembly text for a valid SPIR-V module, including instructions prior to decorations.
test/opt/flatten_decoration_test.cpp:28
↓ 2 callers
Function
PrintUsage
tools/opt/opt.cpp:82
↓ 2 callers
Method
PublishDiagnostics
(context.Context, *PublishDiagnosticsParams)
utils/vscode/src/lsp/protocol/tsclient.go:29
↓ 2 callers
Method
RandomBool
source/fuzz/pseudo_random_generator.cpp:36
↓ 2 callers
Method
ReachableFromRoots
Returns true if the basic block |a| is reachable by this tree. A node would be unreachable if it cannot be reached by traversal from the start node or
source/opt/dominator_tree.h:192
↓ 2 callers
Function
ReadFile
tools/io.cpp:42
↓ 2 callers
Function
ReassociateNestedMulDivFloat
Reassociate floating point mul/div instructions, which have mul/div inputs, both of which contain a constant. e.g: (a * C0) / (C1 / b) = (C0 / C1) *
source/opt/folding_rules.cpp:1731
↓ 2 callers
Function
RedundantLogicalEqual
(a == true) = a (a == false) = !a (a != true) = !a (a != false) = a
source/opt/folding_rules.cpp:3415
↓ 2 callers
Function
RedundantSUDiv
This rule handles divisions by 1 or vector 1 (a / 1 => a).
source/opt/folding_rules.cpp:3812
↓ 2 callers
Function
RedundantSUMod
This rule handles modulo from division by 1 or vector 1 (a % 1 => 0).
source/opt/folding_rules.cpp:3839
↓ 2 callers
Function
ReflectionInstructionName
source/val/validate_extensions.cpp:42
↓ 2 callers
Method
RegisterDecorationForId
Registers the decoration for the given <id>
source/val/validation_state.h:472
↓ 2 callers
Method
RegisterQCOMImageProcessingTextureConsumer
source/val/validation_state.cpp:659
↓ 2 callers
Method
RemoveChildLoop
Remove the child loop form this loop.
source/opt/loop_descriptor.h:269
↓ 2 callers
Function
RemoveParameter
source/fuzz/fuzzer_util.cpp:1009
↓ 2 callers
Method
ReorderBasicBlocksInStructuredOrder
source/opt/function.cpp:276
↓ 2 callers
Function
ReplaceLoadWithCompositeConstruct
Replaces load instructions with composite construct instructions in all the users of the loads. |loads_to_composites| is the mapping from each load to
source/opt/interface_var_sroa.cpp:110
↓ 2 callers
Function
ReplacePhiParentWith
source/opt/loop_fusion.cpp:524
↓ 2 callers
Method
ResetType
source/opt/type_manager.h:236
↓ 2 callers
Method
Response
Response is called near the start of processing any response.
utils/vscode/src/lsp/jsonrpc2/handler.go:53
↓ 2 callers
Method
Run
source/fuzz/added_function_reducer.cpp:52
↓ 2 callers
Method
SaveTextResult
source/disassemble.cpp:519
↓ 2 callers
Function
SetConsoleForegroundColorPrimary
source/print.cpp:22
↓ 2 callers
Method
SetContext
Sets the associated context for this module
source/opt/module.h:293
← previous
next →
1,801–1,900 of 7,821, ranked by callers