Lines Matching refs:Id

66 const Id NoResult = 0;
67 const Id NoType = 0;
85 bool isId; // true if word is an Id, false if word is an immediate
96 Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode), block(nullptr) { }
99 void addIdOperand(Id id) {
145 Id getResultId() const { return resultId; }
146 Id getTypeId() const { return typeId; }
147 Id getIdOperand(int op) const {
181 Id resultId;
182 Id typeId;
184 std::vector<Id> operands; // operands, both <id> and immediates (both are unsigned int)
195 Block(Id id, Function& parent);
200 Id getId() { return instructions.front()->getResultId(); }
326 Function(Id id, Id resultType, Id functionType, Id firstParam, LinkageType linkage, const std::string& name, Module& parent);
335 Id getId() const { return functionInstruction.getResultId(); }
336 Id getParamId(int p) const { return parameterInstructions[p]->getResultId(); }
337 Id getParamType(int p) const { return parameterInstructions[p]->getTypeId(); }
353 Id getReturnType() const { return functionInstruction.getTypeId(); }
354 Id getFuncId() const { return functionInstruction.getResultId(); }
355 Id getFuncTypeId() const { return functionInstruction.getIdOperand(1); }
364 void setDebugLineInfo(Id fileName, int line, int column) {
441 spv::Id resultId = instruction->getResultId();
448 Instruction* getInstruction(Id id) const { return idToInstruction[id]; }
450 spv::Id getTypeId(Id resultId) const {
453 StorageClass getStorageClass(Id typeId) const
482 __inline Function::Function(Id id, Id resultType, Id functionType, Id firstParamId, LinkageType linkage, const std::string& name, Module& parent)
516 __inline Block::Block(Id id, Function& parent) : parent(parent), unreachable(false)