Lines Matching refs:uint32_t
26 void encodeInstructionInto(SmallVectorImpl<uint32_t> &binary, spirv::Opcode op,
27 ArrayRef<uint32_t> operands);
52 void collect(SmallVectorImpl<uint32_t> &binary);
79 uint32_t getNextID() { return nextID++; } in getNextID()
85 uint32_t getSpecConstID(StringRef constName) const { in getSpecConstID()
89 uint32_t getVariableID(StringRef varName) const { in getVariableID()
93 uint32_t getFunctionID(StringRef fnName) const { in getFunctionID()
99 uint32_t getOrCreateFunctionID(StringRef fnName);
126 LogicalResult processName(uint32_t resultID, StringRef name);
137 LogicalResult processDecoration(Location loc, uint32_t resultID,
142 uint32_t resultId) { in processTypeDecoration()
148 uint32_t structID,
155 uint32_t getTypeID(Type type) const { return typeIDMap.lookup(type); } in getTypeID()
167 LogicalResult processType(Location loc, Type type, uint32_t &typeID);
168 LogicalResult processTypeImpl(Location loc, Type type, uint32_t &typeID,
173 LogicalResult prepareBasicType(Location loc, Type type, uint32_t resultID,
175 SmallVectorImpl<uint32_t> &operands,
181 SmallVectorImpl<uint32_t> &operands);
187 uint32_t getConstantID(Attribute value) const { in getConstantID()
196 uint32_t prepareConstant(Location loc, Type constType, Attribute valueAttr);
201 uint32_t prepareArrayConstant(Location loc, Type constType, ArrayAttr attr);
210 uint32_t prepareDenseElementsConstant(Location loc, Type constType,
218 uint32_t prepareConstantScalar(Location loc, Attribute valueAttr,
221 uint32_t prepareConstantBool(Location loc, BoolAttr boolAttr,
224 uint32_t prepareConstantInt(Location loc, IntegerAttr intAttr,
227 uint32_t prepareConstantFp(Location loc, FloatAttr floatAttr,
235 uint32_t getBlockID(Block *block) const { return blockIDMap.lookup(block); } in getBlockID()
239 uint32_t getOrCreateBlockID(Block *block);
271 uint32_t opcode,
272 ArrayRef<uint32_t> operands);
274 uint32_t getValueID(Value val) const { return valueIDMap.lookup(val); } in getValueID()
289 uint32_t opcode);
311 LogicalResult emitDecoration(uint32_t target, spirv::Decoration decoration,
312 ArrayRef<uint32_t> params = {});
316 LogicalResult emitDebugLine(SmallVectorImpl<uint32_t> &binary, Location loc);
336 uint32_t fileID = 0;
339 uint32_t nextID = 1;
344 SmallVector<uint32_t, 4> capabilities;
345 SmallVector<uint32_t, 0> extensions;
346 SmallVector<uint32_t, 0> extendedSets;
347 SmallVector<uint32_t, 3> memoryModel;
348 SmallVector<uint32_t, 0> entryPoints;
349 SmallVector<uint32_t, 4> executionModes;
350 SmallVector<uint32_t, 0> debug;
351 SmallVector<uint32_t, 0> names;
352 SmallVector<uint32_t, 0> decorations;
353 SmallVector<uint32_t, 0> typesGlobalValues;
354 SmallVector<uint32_t, 0> functions;
362 uint32_t pointerTypeID;
380 SmallVector<uint32_t, 0> functionHeader;
381 SmallVector<uint32_t, 0> functionBody;
384 DenseMap<Type, uint32_t> typeIDMap;
387 DenseMap<Attribute, uint32_t> constIDMap;
390 llvm::StringMap<uint32_t> specConstIDMap;
393 llvm::StringMap<uint32_t> globalVarIDMap;
396 llvm::StringMap<uint32_t> funcIDMap;
399 DenseMap<Block *, uint32_t> blockIDMap;
402 DenseMap<Type, uint32_t> undefValIDMap;
405 DenseMap<Value, uint32_t> valueIDMap;
408 llvm::StringMap<uint32_t> extendedInstSetIDMap;