70 # define POTENTIALLY_UNUSED __attribute__((unused)) 72 # define POTENTIALLY_UNUSED 96 char* wordString = (
char*)&word;
97 char* wordPtr = wordString;
104 if (charCount == 4) {
106 wordPtr = wordString;
114 for (; charCount < 4; ++charCount)
129 void dump(std::vector<unsigned int>&
out)
const 132 unsigned int wordCount = 1;
137 wordCount += (
unsigned int)
operands.size();
213 void dump(std::vector<unsigned int>&
out)
const 257 for (
int i = 0; i < (int)
blocks.size(); ++i)
268 assert(found !=
blocks.end());
283 void dump(std::vector<unsigned int>&
out)
const 341 void dump(std::vector<unsigned int>&
out)
const 365 : parent(parent), functionInstruction(
id, resultType,
OpFunction), implicitThis(
false)
376 for (
int p = 0;
p < numParams; ++
p) {
386 blocks[0]->addLocalVariable(std::move(inst));
const std::vector< Block * > & getSuccessors() const
Definition: spvIR.h:178
bool isTerminated() const
Definition: spvIR.h:198
Definition: spirv.hpp:944
std::vector< Function * > functions
Definition: spvIR.h:349
Id getId()
Definition: spvIR.h:171
Function & getParent() const
Definition: spvIR.h:173
bool isUnreachable() const
Definition: spvIR.h:183
Definition: spirv.hpp:946
void setUnreachable()
Definition: spvIR.h:182
set set set set set set set macro pixldst1 op
Definition: pixman-arm-neon-asm.h:54
void dump(std::vector< unsigned int > &out) const
Definition: spvIR.h:213
Op opCode
Definition: spvIR.h:155
Definition: disassemble.cpp:50
unsigned int Id
Definition: spirv.hpp:47
Definition: spirv.hpp:940
virtual ~Instruction()
Definition: spvIR.h:90
const std::vector< Function * > & getFunctions() const
Definition: spvIR.h:333
Definition: spirv.hpp:947
Block(Id id, Function &parent)
Definition: spvIR.h:390
StorageClass
Definition: spirv.hpp:137
void addIdOperand(Id id)
Definition: spvIR.h:91
Instruction(Id resultId, Id typeId, Op opCode)
Definition: spvIR.h:88
Definition: spirv.hpp:544
void mapInstruction(Instruction *instruction)
Definition: spvIR.h:323
Definition: spirv.hpp:763
Function(Id id, Id resultType, Id functionType, Id firstParam, Module &parent)
Definition: spvIR.h:364
Definition: spirv.hpp:744
GLfloat f
Definition: glext.h:8207
Instruction functionInstruction
Definition: spvIR.h:303
const std::vector< std::unique_ptr< Instruction > > & getInstructions() const
Definition: spvIR.h:179
GLenum GLuint id
Definition: glext.h:6233
Definition: spirv.hpp:545
Id getParamType(int p) const
Definition: spvIR.h:262
struct passwd out
Definition: missing_libc_functions.c:51
std::vector< Block * > predecessors
Definition: spvIR.h:230
Block & operator=(Block &)
Block * getLastBlock() const
Definition: spvIR.h:275
Definition: spirv.hpp:945
Module & parent
Definition: spvIR.h:302
void addPredecessor(Block *pred)
Definition: spvIR.h:175
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bool hasImplicitThis() const
Definition: spvIR.h:281
Decoration
Definition: spirv.hpp:344
static const unsigned int WordCountShift
Definition: spirv.hpp:56
Instruction(Op opCode)
Definition: spvIR.h:89
unsigned int getImmediateOperand(int op) const
Definition: spvIR.h:126
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
Definition: spirv.hpp:764
Op getOpCode() const
Definition: spvIR.h:121
GLfloat param
Definition: glext.h:6480
virtual ~Function()
Definition: spvIR.h:252
Block * getEntryBlock() const
Definition: spvIR.h:274
void setBlock(Block *b)
Definition: spvIR.h:119
void removeBlock(Block *block)
Definition: spvIR.h:265
Module()
Definition: spvIR.h:315
void dump(std::vector< unsigned int > &out) const
Definition: spvIR.h:129
Function & parent
Definition: spvIR.h:232
Op
Definition: spirv.hpp:714
Definition: spirv.hpp:513
void setImplicitThis()
Definition: spvIR.h:280
Id getIdOperand(int op) const
Definition: spvIR.h:125
Id typeId
Definition: spvIR.h:154
std::vector< Block * > successors
Definition: spvIR.h:230
POTENTIALLY_UNUSED const MemorySemanticsMask MemorySemanticsAllMemory
Definition: spvIR.h:76
Id resultId
Definition: spvIR.h:153
std::vector< std::unique_ptr< Instruction > > instructions
Definition: spvIR.h:229
const Decoration NoPrecision
Definition: spvIR.h:67
bool implicitThis
Definition: spvIR.h:306
spv::Id getTypeId(Id resultId) const
Definition: spvIR.h:334
const Id NoResult
Definition: spvIR.h:64
std::vector< Block * > blocks
Definition: spvIR.h:305
Id getParamId(int p) const
Definition: spvIR.h:261
Instruction * getInstruction(Id id) const
Definition: spvIR.h:332
std::vector< Id > operands
Definition: spvIR.h:156
void addLocalVariable(std::unique_ptr< Instruction > inst)
Definition: spvIR.h:176
GLfloat GLfloat p
Definition: glext.h:9809
std::vector< std::unique_ptr< Instruction > > localVariables
Definition: spvIR.h:231
Function & operator=(Function &)
Definition: spirv.hpp:540
Definition: spirv.hpp:765
static int block
Definition: psp2.c:31
Block * getBlock() const
Definition: spvIR.h:120
void dump(std::vector< unsigned int > &out) const
Definition: spvIR.h:283
void addImmediateOperand(unsigned int immediate)
Definition: spvIR.h:92
friend Function
Definition: spvIR.h:227
Id getResultId() const
Definition: spvIR.h:123
Definition: spirv.hpp:942
#define POTENTIALLY_UNUSED
Definition: spvIR.h:72
Definition: spirv.hpp:939
void addFunction(Function *fun)
Definition: spvIR.h:321
MemorySemanticsMask
Definition: spirv.hpp:534
const std::vector< Block * > & getPredecessors() const
Definition: spvIR.h:177
void addLocalVariable(std::unique_ptr< Instruction > inst)
Definition: spvIR.h:383
bool unreachable
Definition: spvIR.h:237
StorageClass getStorageClass(Id typeId) const
Definition: spvIR.h:335
Id getReturnType() const
Definition: spvIR.h:278
void inReadableOrder(Block *root, std::function< void(Block *)> callback)
Definition: InReadableOrder.cpp:110
void dump(std::vector< unsigned int > &out) const
Definition: spvIR.h:341
std::vector< Instruction * > idToInstruction
Definition: spvIR.h:352
void addBlock(Block *block)
Definition: spvIR.h:264
const Id NoType
Definition: spvIR.h:65
std::vector< Instruction * > parameterInstructions
Definition: spvIR.h:304
Definition: spirv.hpp:542
const Instruction * getMergeInstruction() const
Definition: spvIR.h:185
unsigned long Instruction
Definition: llimits.h:165
GLuint GLuint end
Definition: glext.h:6292
#define false
Definition: ordinals.h:83
virtual ~Block()
Definition: spvIR.h:167
const std::vector< Block * > & getBlocks() const
Definition: spvIR.h:276
Definition: spirv.hpp:399
Block * block
Definition: spvIR.h:157
Definition: spirv.hpp:941
Module & getParent() const
Definition: spvIR.h:273
Definition: spirv.hpp:943
void addInstruction(std::unique_ptr< Instruction > inst)
Definition: spvIR.h:397
int getNumOperands() const
Definition: spvIR.h:122
void addStringOperand(const char *str)
Definition: spvIR.h:93
virtual ~Module()
Definition: spvIR.h:316
Id getId() const
Definition: spvIR.h:260
Id getTypeId() const
Definition: spvIR.h:124
const char *const str
Definition: portlistingparse.c:18