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
↓ 3 callers
Function
Diff
source/diff/diff.cpp:2930
↓ 3 callers
Function
DisassembleInst
Disassembles the given |inst| and returns the disassembly.
test/opt/def_use_test.cpp:63
↓ 3 callers
Method
EmitHeaderGenerator
source/disassemble.cpp:652
↓ 3 callers
Method
EmitHeaderIdBound
source/disassemble.cpp:665
↓ 3 callers
Method
EmitHeaderSchema
source/disassemble.cpp:669
↓ 3 callers
Method
EmitHeaderVersion
source/disassemble.cpp:647
↓ 3 callers
Method
EmitInstruction
source/disassemble.cpp:673
↓ 3 callers
Function
Equals
test/val/val_layout_test.cpp:42
↓ 3 callers
Function
ExtensionSetToString
source/extensions.cpp:47
↓ 3 callers
Function
ExtractStringLiteral
Extract a string literal from a given range. Copies all the characters from `begin` to the first '\0' it encounters, while removing escape patterns. N
tools/objdump/extract_source.cpp:38
↓ 3 callers
Method
Fail
source/opt/graphics_robust_access_pass.cpp:180
↓ 3 callers
Method
Finalize
source/opt/loop_unroller.cpp:1167
↓ 3 callers
Function
FindUniformVariable
source/fuzz/uniform_buffer_element_descriptor.cpp:44
↓ 3 callers
Function
FloatBitsAsUint
Reinterpret the bits of |value| as a 32-bit unsigned int
test/fuzz/fuzzer_replayer_test.cpp:1630
↓ 3 callers
Function
FoldRedundantDiv
x / x = 1 -x / x = -1 x / -x = -1
source/opt/const_folding_rules.cpp:1123
↓ 3 callers
Method
ForEachBlockLabel
Runs the function |f| on each block label in the CDG. Nodes are iterated in some undefined order, including the pseudo-entry block.
source/opt/control_dependence.h:149
↓ 3 callers
Method
ForEachInst
source/opt/function.cpp:60
↓ 3 callers
Method
ForgetBasicBlock
Removes the basic block id |bb_id| from the block to loop mapping.
source/opt/loop_descriptor.h:524
↓ 3 callers
Function
GenCoopMatLoadStoreShader
test/val/val_memory_test.cpp:2634
↓ 3 callers
Function
GenCoopVecLoadStoreShader
test/val/val_memory_test.cpp:9734
↓ 3 callers
Function
GenerateAllTypes
test/opt/type_manager_test.cpp:66
↓ 3 callers
Function
GenerateAllTypes
test/opt/types_test.cpp:116
↓ 3 callers
Function
GenerateShader
test/val/val_function_test.cpp:32
↓ 3 callers
Function
GenerateShaderAccessChain
test/val/val_function_test.cpp:112
↓ 3 callers
Function
GenerateShaderCode
test/val/val_literals_test.cpp:33
↓ 3 callers
Function
GenerateShaderParameter
test/val/val_function_test.cpp:79
↓ 3 callers
Function
GenerateSpirvProgramWithCfgNestingDepth
clang-format off Generates an SPIRV program with the given control flow nesting depth
test/val/val_limits_test.cpp:673
↓ 3 callers
Function
GenerateVulkanVertexShaderCode
test/val/val_barriers_test.cpp:124
↓ 3 callers
Method
GetAllKnownValues
Returns all values known to be part of the equivalence relation.
source/fuzz/equivalence_relation.h:167
↓ 3 callers
Function
GetArrayLength
source/val/validate_ray_tracing_reorder.cpp:30
↓ 3 callers
Method
GetConditionID
source/opt/control_dependence.cpp:42
↓ 3 callers
Function
GetConstantUniformValue
Get a singular uniform value, which is repeated when the |type| is a vector.
source/opt/const_folding_rules.cpp:1079
↓ 3 callers
Function
GetDependences
Append all dependences from |sources| to |destinations| to |dependences|.
source/opt/loop_fusion.cpp:56
↓ 3 callers
Method
GetDoubleConst
source/opt/constants.cpp:494
↓ 3 callers
Method
GetDoubleValue
Returns the double value of |this|. The type of |this| must be |Float| with width of 64.
source/opt/constants.h:254
↓ 3 callers
Function
GetElementType
Walks the indexes chain from |start| to |end| of an OpCompositeInsert or OpCompositeExtract instruction, and returns the type id of the final element
source/opt/folding_rules.cpp:2176
↓ 3 callers
Function
GetExtensionString
source/extensions.cpp:26
↓ 3 callers
Method
GetFloatConst
source/opt/constants.cpp:480
↓ 3 callers
Method
GetFuzzerContext
source/fuzz/fuzzer_pass.h:54
↓ 3 callers
Function
GetInMainCodeGenerator
test/val/val_builtins_test.cpp:80
↓ 3 callers
Method
GetIndirectCallees
source/fuzz/call_graph.cpp:165
↓ 3 callers
Method
GetInductionInitValue
Extract the initial value from the |induction| OpPhi instruction and store it in |value|. If the function couldn't find the initial value of |inductio
source/opt/loop_descriptor.cpp:169
↓ 3 callers
Function
GetInstructionToFold
test/opt/fold_test.cpp:69
↓ 3 callers
Method
GetLargestScalarType
source/val/validation_state.cpp:1449
↓ 3 callers
Function
GetLastInsertBeforeInstruction
source/fuzz/fuzzer_util.cpp:1560
↓ 3 callers
Function
GetListOfPassesAsString
tools/opt/opt.cpp:54
↓ 3 callers
Function
GetLocationsForVariable
Populates |locations| (and/or |output_index1_locations|) with the use location and component coordinates for |variable|. Indices are calculated as 4 *
source/val/validate_interfaces.cpp:274
↓ 3 callers
Method
GetName
source/reduce/reduction_pass.cpp:77
↓ 3 callers
Method
GetNullConstId
source/opt/constants.cpp:538
↓ 3 callers
Function
GetNumberOfElementsForArrayOrStruct
source/opt/desc_sroa_util.cpp:114
↓ 3 callers
Method
GetOrInsertNode
source/opt/dominator_tree.cpp:264
↓ 3 callers
Method
GetOutputPrimitivesEXT
Returns the maximum number of primitives mesh shader can emit
source/val/validation_state.h:274
↓ 3 callers
Function
GetReachableReturnBlocks
source/fuzz/fuzzer_util.cpp:1906
↓ 3 callers
Function
GetRemappedId
Returns the remapped id of |id| from |result_id_mapping|. If the remapped id does not exist, adds a new one to |result_id_mapping| and returns it.
source/opt/compact_ids_pass.cpp:28
↓ 3 callers
Method
GetS64BitValue
source/opt/constants.h:207
↓ 3 callers
Method
GetStructMemberTypes
source/val/validation_state.cpp:1404
↓ 3 callers
Method
GetTransformationLimit
source/fuzz/fuzzer_context.cpp:429
↓ 3 callers
Function
GetUIntType
source/opt/amd_ext_to_khr.cpp:49
↓ 3 callers
Function
GetUnreachableMergeTerminatedBy
test/val/val_cfg_test.cpp:706
↓ 3 callers
Function
GetUseOpcodes
Returns the opcode of each use of |id|. If |id| is used multiple times in a single instruction, that instruction's opcode will appear a corresponding
test/opt/def_use_test.cpp:52
↓ 3 callers
Function
GraphTypeInstNumIO
source/val/validate_graph.cpp:62
↓ 3 callers
Function
GraphTypeInstNumInputs
source/val/validate_graph.cpp:66
↓ 3 callers
Function
GreatestCommonDivisor
Calculate the greatest common divisor of a & b using Stein's algorithm. https://en.wikipedia.org/wiki/Binary_GCD_algorithm
source/opt/loop_dependence.cpp:35
↓ 3 callers
Method
HasSameDecorations
source/opt/types.cpp:85
↓ 3 callers
Method
HashValue
source/opt/types.cpp:272
↓ 3 callers
Method
InsertOperand
Insert an operand before the |index|-th operand
source/opt/instruction.h:348
↓ 3 callers
Function
InstructionIsFunctionParameter
source/fuzz/fuzzer_util.cpp:750
↓ 3 callers
Function
IsAllowedTypeOrArrayOfSame
source/val/validate_memory.cpp:43
↓ 3 callers
Method
IsArrayType
source/val/validation_state.cpp:1062
↓ 3 callers
Function
IsBlockArray
source/val/validate_logical_pointers.cpp:413
↓ 3 callers
Method
IsConstant
source/opt/instruction.h:918
↓ 3 callers
Method
IsCooperativeMatrixAccType
source/val/validation_state.cpp:1514
↓ 3 callers
Method
IsDebugInfo
True if this is an OpExtInst for debug info extension.
source/val/instruction.h:95
↓ 3 callers
Function
IsDescriptorArray
source/opt/desc_sroa_util.cpp:59
↓ 3 callers
Function
IsHeader
Returns true if |block| contains a merge instruction.
source/opt/block_merge_util.cpp:26
↓ 3 callers
Function
IsIntScalar
source/val/validate_extensions.cpp:63
↓ 3 callers
Method
IsLine
source/opt/instruction.cpp:597
↓ 3 callers
Function
IsNonFunctionTypeId
source/fuzz/fuzzer_util.cpp:555
↓ 3 callers
Method
IsNotify
IsNotify returns true if this request is a notification.
utils/vscode/src/lsp/jsonrpc2/jsonrpc2.go:217
↓ 3 callers
Function
IsProj
Returns true if the opcode is a Image instruction which applies homogenous projection to the coordinates.
source/val/validate_image.cpp:295
↓ 3 callers
Function
IsRankedTensor
source/val/validate_tensor.cpp:25
↓ 3 callers
Method
IsReturn
Returns true if this basic block exits this function and returns to its caller.
source/opt/basic_block.h:207
↓ 3 callers
Method
IsReturnOrAbort
Returns true if this basic block exits this function or aborts execution.
source/opt/basic_block.h:210
↓ 3 callers
Method
IsScalarType
source/val/validation_state.cpp:1048
↓ 3 callers
Function
IsSupportOptionalOpenCL_1_2
source/val/validate_capability.cpp:280
↓ 3 callers
Method
IsTargetEnvAtLeast
Returns true of the current target environment is at least that of the given environment.
source/opt/ir_context.h:709
↓ 3 callers
Function
IsTensorArray
source/val/validate_graph.cpp:27
↓ 3 callers
Method
IsUnsignedIntCooperativeVectorNVType
source/val/validation_state.cpp:1565
↓ 3 callers
Method
KillDebugDeclares
source/opt/loop_unroller.cpp:628
↓ 3 callers
Method
KillInstructionIf
source/opt/ir_context.cpp:238
↓ 3 callers
Method
LessThan
LessThan returns true iff o is before p.
utils/vscode/src/parser/parser.go:133
↓ 3 callers
Method
LogicallyMatch
source/val/validation_state.cpp:1963
↓ 3 callers
Method
LoopContinueBlock
source/opt/struct_cfg_analysis.cpp:154
↓ 3 callers
Function
MakeValidDiagnostic
Returns a newly created diagnostic value.
test/diagnostic_test.cpp:28
↓ 3 callers
Function
MaybeGetFloatConstant
source/fuzz/fuzzer_util.cpp:1448
↓ 3 callers
Function
MembersHaveBuiltInDecoration
source/fuzz/fuzzer_util.cpp:1722
↓ 3 callers
Function
MergeWithSuccessor
source/opt/block_merge_util.cpp:163
↓ 3 callers
Function
ModuleLayoutPass
TODO(umar): Check linkage capabilities for function declarations TODO(umar): Better error messages NOTE: This function does not handle CFG related val
source/val/validate_layout.cpp:429
↓ 3 callers
Function
NewErrorf
NewErrorf builds a Error struct for the supplied message and code. If args is not empty, message and args will be passed to Sprintf.
utils/vscode/src/lsp/jsonrpc2/jsonrpc2.go:64
↓ 3 callers
Function
NewTerminatorPreservesDominationRules
source/fuzz/fuzzer_util.cpp:1923
← previous
next →
1,401–1,500 of 7,821, ranked by callers