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
↓ 1 callers
Method
AreAllChildrenMarkedForRemoval
Returns true if all nested loops have been marked for removal.
source/opt/loop_descriptor.h:283
↓ 1 callers
Function
ArithmeticsPass
Validates correctness of arithmetic instructions.
source/val/validate_arithmetics.cpp:842
↓ 1 callers
Method
AsSECantCompute
source/opt/scalar_analysis_nodes.h:341
↓ 1 callers
Method
AsSENegative
source/opt/scalar_analysis_nodes.h:308
↓ 1 callers
Function
AssemblyForCase
test/val/val_extension_spv_khr_integer_dot_product_test.cpp:63
↓ 1 callers
Function
AssemblyForCase
test/val/val_extension_spv_khr_subgroup_rotate_test.cpp:55
↓ 1 callers
Function
AtMostOncePerId
Returns true if |decoration| cannot be applied to the same id more than once.
source/val/validate_decorations.cpp:1611
↓ 1 callers
Function
AtMostOncePerMember
Returns true if |decoration| cannot be applied to the same member more than once.
source/val/validate_decorations.cpp:1618
↓ 1 callers
Function
AtomicsPass
Validates correctness of atomic instructions.
source/val/validate_atomics.cpp:121
↓ 1 callers
Method
AugmentedCFGPredecessorsFunction
source/val/function.cpp:256
↓ 1 callers
Method
AugmentedCFGSuccessorsFunction
source/val/function.cpp:248
↓ 1 callers
Function
BarriersPass
Validates correctness of barrier instructions.
source/val/validate_barriers.cpp:31
↓ 1 callers
Method
Begin
Emits the graph preamble.
tools/cfg/bin_to_dot.cpp:38
↓ 1 callers
Function
BinaryToDot
tools/cfg/bin_to_dot.cpp:168
↓ 1 callers
Function
BitCastScalarOrVector
source/opt/folding_rules.cpp:2859
↓ 1 callers
Function
BitReverseScalarOrVector
source/opt/folding_rules.cpp:2921
↓ 1 callers
Function
BitwisePass
Validates correctness of bitwise instructions.
source/val/validate_bitwise.cpp:230
↓ 1 callers
Function
BuildAllUsers
Creates a mapping of all definitions to their users (except OpConstant). OpConstants are skipped because they cannot be disassembled in isolation.
test/opt/def_use_test.cpp:113
↓ 1 callers
Function
BuildCompositeConstruct
Returns an OpCompositeConstruct instruction that build an object with |type_id| out of the values in |values_inserted|. Each value will be placed at
source/opt/folding_rules.cpp:2765
↓ 1 callers
Method
BuildConstants
source/opt/copy_prop_arrays.cpp:969
↓ 1 callers
Function
BuildControlFlowGraph
source/disassemble.cpp:235
↓ 1 callers
Method
BuildGraphWithoutRecurrentTerm
Rebuild the |node| eliminating, if it exists, the recurrent term which belongs to the |loop|.
source/opt/scalar_analysis.cpp:433
↓ 1 callers
Function
CLIMessageConsumer
tools/util/cli_consumer.cpp:22
↓ 1 callers
Method
CPUTime
test/timer_test.cpp:31
↓ 1 callers
Function
CanHaveSpecIdDecoration
Returns true if the given instruction's result id could have a SpecId decoration.
source/opt/set_spec_constant_default_value_pass.cpp:143
↓ 1 callers
Method
CanPerformSplit
source/opt/loop_fission.cpp:269
↓ 1 callers
Method
CanUnswitchLoop
Returns true if the loop can be unswitched. Can be unswitch if: - The loop has no instructions that prevents it (such as barrier); - The loop has one
source/opt/loop_unswitch_pass.cpp:60
↓ 1 callers
Function
CanonicalizeFlag
Canonicalize the flag in |argv[argi]| of the form '--pass arg' into '--pass=arg'. The optimizer only accepts arguments to pass names that use the form
tools/opt/opt.cpp:716
↓ 1 callers
Function
CapVersionCases1_5
test/val/val_capability_test.cpp:3262
↓ 1 callers
Function
CapabilityCheck
Returns SPV_ERROR_INVALID_CAPABILITY and emits a diagnostic if the instruction is invalid because the required capability isn't declared in the module
source/val/validate_instruction.cpp:242
↓ 1 callers
Function
CapabilityPass
Validates that capability declarations use operands allowed in the current context.
source/val/validate_capability.cpp:350
↓ 1 callers
Function
CfgPass
source/val/validate_cfg.cpp:1138
↓ 1 callers
Method
ChanceOfMakingDonorLivesafe
source/fuzz/fuzzer_context.h:288
↓ 1 callers
Function
CheckAllImageOperandsHandled
Performs compile time check that all spv::ImageOperandsMask::XXX cases are handled in this module. If spv::ImageOperandsMask::XXX list changes, this f
source/val/validate_image.cpp:38
↓ 1 callers
Function
CheckBlockDecoration
Returns SPV_SUCCESS if validation rules are satisfied for the Block decoration. Otherwise emits a diagnostic and returns something other than SPV_SUC
source/val/validate_decorations.cpp:2114
↓ 1 callers
Function
CheckBuiltInVariable
Checks whether a builtin variable is valid.
source/val/validate_decorations.cpp:820
↓ 1 callers
Function
CheckComponentDecoration
Returns SPV_SUCCESS if validation rules are satisfied for the Component decoration. Otherwise emits a diagnostic and returns something other than SPV
source/val/validate_decorations.cpp:2005
↓ 1 callers
Function
CheckDecorationsCompatibility
source/val/validate_decorations.cpp:1622
↓ 1 callers
Function
CheckDecorationsFromDecoration
Check rules for decorations where we start from the decoration rather than the decorated object. Assumes each decoration on a group have been propaga
source/val/validate_decorations.cpp:2172
↓ 1 callers
Function
CheckDecorationsOfBuffers
source/val/validate_decorations.cpp:1258
↓ 1 callers
Function
CheckDecorationsOfEntryPoints
Checks whether proper decorations have been applied to the entry points.
source/val/validate_decorations.cpp:836
↓ 1 callers
Function
CheckDecorationsOfVariables
source/val/validate_decorations.cpp:1205
↓ 1 callers
Function
CheckDivergentDerivatives
source/lint/lint_divergent_derivatives.cpp:147
↓ 1 callers
Function
CheckFPRoundingModeForKernels
source/val/validate_decorations.cpp:1824
↓ 1 callers
Function
CheckFPRoundingModeForShaders
Returns SPV_SUCCESS if validation rules are satisfied for FPRoundingMode decorations. Otherwise emits a diagnostic and returns something other than S
source/val/validate_decorations.cpp:1752
↓ 1 callers
Function
CheckIdDefinitionDominateUse
This function checks all ID definitions dominate their use in the CFG. This function will iterate over all ID definitions that are defined in the fun
source/val/validate_id.cpp:50
↓ 1 callers
Function
CheckIfKnownExtension
Parses OpExtension instruction and logs warnings if unsuccessful.
source/val/validate_instruction.cpp:450
↓ 1 callers
Function
CheckImportExportCompatibility
source/link/linker.cpp:527
↓ 1 callers
Function
CheckImportedVariableInitialization
Checks whether an imported variable is initialized by this module.
source/val/validate_decorations.cpp:801
↓ 1 callers
Function
CheckIntegerWrapDecoration
Returns SPV_SUCCESS if validation rules are satisfied for NoSignedWrap or NoUnsignedWrap decorations. Otherwise emits a diagnostic and returns somethi
source/val/validate_decorations.cpp:1975
↓ 1 callers
Function
CheckInvalidVulkanExplicitLayout
source/val/validate_decorations.cpp:2336
↓ 1 callers
Method
CheckLimitations
source/val/function.cpp:410
↓ 1 callers
Function
CheckLinkageAttrOfFunctions
source/val/validate_decorations.cpp:776
↓ 1 callers
Function
CheckLocationDecoration
source/val/validate_decorations.cpp:2128
↓ 1 callers
Function
CheckNonReadableWritableDecorations
Returns SPV_SUCCESS if validation rules are satisfied for the NonReadable or NonWritable decoration. Otherwise emits a diagnostic and returns somethi
source/val/validate_decorations.cpp:1843
↓ 1 callers
Function
CheckRelaxPrecisionDecoration
source/val/validate_decorations.cpp:2143
↓ 1 callers
Function
CheckUniformDecoration
Returns SPV_SUCCESS if validation rules are satisfied for Uniform or UniformId decorations. Otherwise emits a diagnostic and returns something other t
source/val/validate_decorations.cpp:1925
↓ 1 callers
Function
CheckVulkanMemoryModelDeprecatedDecorations
source/val/validate_decorations.cpp:1722
↓ 1 callers
Method
ChoosePass
source/fuzz/pass_management/repeated_pass_manager_simple.cpp:26
↓ 1 callers
Method
ClearDebugScopeAndInlinedAtUses
source/opt/debug_info_manager.cpp:697
↓ 1 callers
Method
ClearDecorations
Removes decorations on this type. For struct types, also removes element decorations.
source/opt/types.h:266
↓ 1 callers
Method
CloneAndAttachLoopToHeader
source/opt/loop_utils.cpp:519
↓ 1 callers
Method
CloneNames
source/opt/ir_context.h:1330
↓ 1 callers
Method
CodeAction
(context.Context, *CodeActionParams)
utils/vscode/src/lsp/protocol/tsserver.go:57
↓ 1 callers
Method
CodeLens
(context.Context, *CodeLensParams)
utils/vscode/src/lsp/protocol/tsserver.go:59
↓ 1 callers
Method
CollectNonSemanticTree
source/opt/ir_context.cpp:260
↓ 1 callers
Method
CollectTargetVars
source/opt/mem_pass.cpp:505
↓ 1 callers
Method
CollectUsedVariables
source/opt/remove_unused_interface_variables_pass.cpp:59
↓ 1 callers
Method
ColorPresentation
(context.Context, *ColorPresentationParams)
utils/vscode/src/lsp/protocol/tsserver.go:42
↓ 1 callers
Method
Column
()
utils/vscode/src/lsp/span/span.go:135
↓ 1 callers
Function
CombineVariantDefs
source/link/fnvar.cpp:303
↓ 1 callers
Method
CombineVariantInstructions
source/link/fnvar.cpp:516
↓ 1 callers
Function
CompareAndPrintDifferences
source/opt/def_use_manager.cpp:262
↓ 1 callers
Function
CompareURI
(a, b URI)
utils/vscode/src/lsp/span/uri.go:72
↓ 1 callers
Method
Completion
(context.Context, *CompletionParams)
utils/vscode/src/lsp/protocol/tsserver.go:49
↓ 1 callers
Function
CompositesPass
anonymous namespace Validates correctness of composite instructions.
source/val/validate_composites.cpp:1148
↓ 1 callers
Method
Compute
Computes the register liveness for |function_| and then estimate the register usage. The liveness algorithm works in 2 steps: - First, compute the liv
source/opt/register_pressure.cpp:79
↓ 1 callers
Method
ComputeExtendedInstructions
Generates tables for extended instructions Args: self extinsts: a list of extinst objects
utils/ggt.py:631
↓ 1 callers
Method
ComputeExtensionDecls
(self)
utils/ggt.py:273
↓ 1 callers
Method
ComputeFunctionToEntryPointMapping
source/val/validation_state.cpp:1855
↓ 1 callers
Method
ComputeInstructionTables
Creates declarations for instruction tables. Populates self.header_ignore_decls, self.body_decls. Params: insts:
utils/ggt.py:508
↓ 1 callers
Method
ComputeLeafTables
Generates the tables that the instruction and operand tables point to. The tables are: - the string table - t
utils/ggt.py:754
↓ 1 callers
Function
ComputeMemberConstraintsForArray
source/val/validate_decorations.cpp:1182
↓ 1 callers
Method
ComputeOperandTables
Returns the string for the C definitions of the operand kind tables. An operand kind such as ImageOperands also has an associated
utils/ggt.py:300
↓ 1 callers
Method
ComputePrintingClassDecls
(self)
utils/ggt.py:266
↓ 1 callers
Method
ComputeRecursiveEntryPoints
source/val/validation_state.cpp:1878
↓ 1 callers
Method
Configuration
(context.Context, *ParamConfig)
utils/vscode/src/lsp/protocol/tsclient.go:31
↓ 1 callers
Function
ConstantPass
source/val/validate_constants.cpp:741
↓ 1 callers
Method
Contains
Contains returns true if p is in r.
utils/vscode/src/parser/parser.go:109
↓ 1 callers
Method
ContainsDebugInfo
source/opt/module.h:140
↓ 1 callers
Function
ContainsDebugOpcode
test/opt/pass_utils.cpp:75
↓ 1 callers
Function
ContainsInvalidBool
If |skip_builtin| is true, returns true if |storage| contains bool within it and no storage that contains the bool is builtin. If |skip_builtin| is fa
source/val/validate_memory.cpp:164
↓ 1 callers
Function
ContainsPointers
source/fuzz/transformation_propagate_instruction_up.cpp:37
↓ 1 callers
Method
ContainsRuntimeArray
source/val/validation_state.cpp:2123
↓ 1 callers
Function
ControlFlowPass
source/val/validate_cfg.cpp:1280
↓ 1 callers
Function
ConversionPass
Validates correctness of conversion instructions.
source/val/validate_conversion.cpp:891
↓ 1 callers
Function
CountTrailingZeros
Count the number of trailing zeros in the binary representation of |constVal|.
source/opt/strength_reduction_pass.cpp:32
↓ 1 callers
Method
Create
source/fuzz/pass_management/repeated_pass_manager.cpp:30
↓ 1 callers
Function
CreateAmdExtToKhrPass
source/opt/optimizer.cpp:1109
↓ 1 callers
Function
CreateCanonicalizeIdsPass
source/opt/optimizer.cpp:1216
← previous
next →
2,101–2,200 of 7,821, ranked by callers