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
↓ 6,037 callers
Method
get
source/disassemble.cpp:82
↓ 2,163 callers
Method
diag
source/val/validation_state.cpp:337
↓ 2,121 callers
Method
IsApplicable
source/fuzz/transformation_load.cpp:40
↓ 1,821 callers
Method
opcode
source/val/instruction.h:47
↓ 1,793 callers
Method
c_str
Returns the source for a C string literal or the given string, including the explicit null at the end
utils/ggt.py:767
↓ 1,507 callers
Method
GetSingleWordInOperand
source/opt/instruction.h:363
↓ 1,392 callers
Method
GetDef
source/opt/def_use_manager.cpp:85
↓ 1,366 callers
Method
get_def_use_mgr
Returns the def-use manager used for this pass. TODO(dnovillo): This should be handled by the pass manager.
source/opt/pass.h:74
↓ 1,280 callers
Method
result_id
Returns graph's id
source/opt/graph.h:56
↓ 1,177 callers
Method
opcode
source/opt/instruction.h:238
↓ 1,084 callers
Function
BuildModule
Returns an IRContext owning the module formed by assembling the given text, then loading the result.
test/opt/module_test.cpp:47
↓ 1,080 callers
Function
Header
Return a string that contains the minimum instructions needed to form a valid module. Other instructions can be appended to this string.
test/opt/optimizer_test.cpp:33
↓ 1,056 callers
Method
size
source/util/span.h:49
↓ 1,049 callers
Function
IsValidAndWellFormed
source/fuzz/fuzzer_util.cpp:494
↓ 1,046 callers
Function
MakeDataDescriptor
source/fuzz/data_descriptor.cpp:22
↓ 910 callers
Method
GetFactManager
source/fuzz/transformation_context.h:45
↓ 880 callers
Method
type_id
Returns graph's return type id
source/opt/graph.h:59
↓ 811 callers
Method
push_back
source/opt/instruction_list.h:108
↓ 806 callers
Function
MakeInstructionDescriptor
source/fuzz/instruction_descriptor.cpp:55
↓ 788 callers
Method
id
Returns the id of the function
source/val/function.h:143
↓ 786 callers
Method
push_back
source/util/ilist.h:272
↓ 705 callers
Function
ApplyAndCheckFreshIds
test/fuzz/fuzz_test_util.cpp:159
↓ 672 callers
Method
module
source/opt/ir_loader.h:50
↓ 662 callers
Method
FindDef
source/val/validation_state.cpp:303
↓ 616 callers
Method
end
source/util/ilist.h:242
↓ 595 callers
Function
MakeInstruction
Returns a vector of words representing a single instruction with the given opcode and operand words as a vector.
test/unit_spirv.h:107
↓ 565 callers
Method
begin
source/util/ilist.h:236
↓ 542 callers
Method
Dominates
source/opt/dominator_tree.cpp:223
↓ 523 callers
Method
GetType
source/opt/constants.cpp:153
↓ 523 callers
Method
get_type_mgr
Returns a pointer to the type manager. If no type manager has been created yet, it creates one. NOTE: Once created, the type manager remains active i
source/opt/ir_context.h:360
↓ 472 callers
Function
spvOpcodeString
source/opcode.cpp:90
↓ 445 callers
Method
end
source/opt/module.h:262
↓ 441 callers
Method
insert
source/util/small_vector.h:350
↓ 420 callers
Method
str
Returns the string representation of this word vector.
test/unit_spirv.h:80
↓ 377 callers
Method
type_id
source/val/instruction.h:46
↓ 364 callers
Method
id
Returns the id of the label at the top of this block
source/opt/basic_block.h:92
↓ 362 callers
Method
IsSynonymous
source/fuzz/fact_manager/fact_manager.cpp:197
↓ 357 callers
Method
getIdName
source/val/validation_state.cpp:281
↓ 355 callers
Method
emplace_back
source/util/small_vector.h:408
↓ 343 callers
Method
StrictlyDominates
source/opt/dominator_tree.cpp:207
↓ 341 callers
Method
size
source/opt/iterator.h:125
↓ 338 callers
Function
GenerateShaderCode
test/val/val_image_test.cpp:37
↓ 330 callers
Method
GetOperandTypeId
source/val/validation_state.cpp:1772
↓ 312 callers
Method
NumInOperands
The following methods are similar to the above, but are for in operands.
source/opt/instruction.h:353
↓ 308 callers
Method
begin
Iterators for functions contained in this module.
source/opt/module.h:261
↓ 298 callers
Method
VkErrorID
Currently no 2 VUID share the same id, so no need for |reference|
source/val/validation_state.cpp:2220
↓ 294 callers
Function
IsEqual
test/fuzz/fuzz_test_util.cpp:51
↓ 290 callers
Method
count
source/util/index_range.h:46
↓ 270 callers
Method
get_instr_block
Returns the basic block for instruction |instr|. Re-builds the instruction block map, if needed.
source/opt/ir_context.h:313
↓ 264 callers
Method
data
source/util/span.h:55
↓ 254 callers
Method
word
The word used to define the Instruction
source/val/instruction.h:68
↓ 240 callers
Method
empty
source/util/ilist.h:277
↓ 233 callers
Method
cfg
Returns a pointer to the CFG for current module.
source/opt/pass.h:96
↓ 231 callers
Function
GetExtInstName
source/val/validate_extensions.cpp:91
↓ 229 callers
Method
GetSingleWordOperand
source/opt/instruction.cpp:183
↓ 213 callers
Method
HasCapability
Returns true if the capability is enabled in the module.
source/val/validation_state.h:399
↓ 212 callers
Method
AsVector
source/opt/types.h:325
↓ 210 callers
Method
AsInteger
source/opt/types.h:280
↓ 210 callers
Function
GenerateKernelCode
test/val/val_ext_inst_test.cpp:263
↓ 204 callers
Function
GenerateShaderCodeForDebugInfo
test/val/val_ext_inst_debug_test.cpp:251
↓ 202 callers
Method
context
Returns the context
source/val/validation_state.h:131
↓ 200 callers
Method
get_constant_mgr
Returns a pointer to the constant manager. If no constant manager has been created yet, it creates one. NOTE: Once created, the constant manager rem
source/opt/ir_context.h:350
↓ 197 callers
Method
width
source/opt/types.h:304
↓ 194 callers
Method
GetLoopDescriptor
source/opt/ir_context.cpp:842
↓ 194 callers
Method
GetScalarEvolution
Returns the ScalarEvolutionAnalysis used by this analysis.
source/opt/loop_dependence.h:378
↓ 184 callers
Method
InsertBefore
source/opt/iterator.h:315
↓ 182 callers
Function
GetBasicBlock
test/opt/function_utils.h:43
↓ 179 callers
Function
GenerateShaderCode
test/val/val_ext_inst_test.cpp:83
↓ 178 callers
Method
operands
source/table2.cpp:126
↓ 172 callers
Function
MakeInstructionMessage
source/fuzz/instruction_message.cpp:22
↓ 164 callers
Method
element_type
source/opt/types.h:442
↓ 158 callers
Method
value
Returns the enum value as a uint32_t.
test/unit_spirv.h:154
↓ 157 callers
Method
GetDimension
source/val/validation_state.cpp:981
↓ 155 callers
Method
IsIntScalarType
source/val/validation_state.cpp:1224
↓ 154 callers
Method
AddFactDataSynonym
source/fuzz/fact_manager/fact_manager.cpp:138
↓ 149 callers
Method
AsSEConstantNode
source/opt/scalar_analysis_nodes.h:224
↓ 149 callers
Function
Concatenate
Returns the vector of words representing the concatenation of all input vectors.
test/unit_spirv.h:127
↓ 147 callers
Method
size
source/fuzz/available_instructions.cpp:114
↓ 146 callers
Method
get_feature_mgr
source/opt/pass.h:82
↓ 146 callers
Method
insert
Matches std::unordered_set::insert behavior.
source/enum_set.h:234
↓ 145 callers
Method
GetFreshId
source/fuzz/fuzzer_context.cpp:385
↓ 142 callers
Method
GetParent
source/opt/loop_descriptor.h:176
↓ 141 callers
Function
MakeIdUseDescriptor
source/fuzz/id_use_descriptor.cpp:40
↓ 141 callers
Method
SimplifyExpression
source/opt/scalar_analysis_simplification.cpp:531
↓ 141 callers
Function
spvIsVulkanEnv
source/spirv_target_env.cpp:284
↓ 139 callers
Method
block
Return a pointer to the basic block instance corresponding to the label |blk_id|.
source/opt/cfg.h:42
↓ 136 callers
Function
CardinalToOrdinal
source/util/string_utils.cpp:24
↓ 131 callers
Method
AsFloat
source/opt/types.h:302
↓ 131 callers
Method
back
source/util/span.h:54
↓ 130 callers
Method
GetBitWidth
source/val/validation_state.cpp:1019
↓ 129 callers
Function
GetFunction
test/opt/function_utils.h:23
↓ 129 callers
Method
SetInOperands
source/opt/instruction.h:701
↓ 128 callers
Method
element_count
source/opt/types.h:323
↓ 127 callers
Method
SetInOperand
source/opt/instruction.h:689
↓ 124 callers
Method
FoldToSingleValue
source/opt/scalar_analysis_nodes.h:222
↓ 124 callers
Method
SetOpcode
Sets the opcode of this instruction to a specific opcode. Note this may invalidate the instruction. TODO(qining): Remove this function when instructio
source/opt/instruction.h:243
↓ 123 callers
Method
NumLoops
Returns the number of loops found in the function.
source/opt/loop_descriptor.h:452
↓ 122 callers
Function
float_fractions
Creates a float that is the sum of 1/(2 ^ fractions[i]) for i in factions
test/hex_float_test.cpp:668
↓ 118 callers
Method
CreateConstant
source/opt/constants.cpp:242
↓ 116 callers
Function
UpdateModuleIdBound
source/fuzz/fuzzer_util.cpp:101
next →
1–100 of 7,821, ranked by callers