Home | History | Annotate | Download | only in libSPIRV

Lines Matching refs:SPIRVValue

1 //===- SPIRVValue.h - Class to represent a SPIR-V Value ----------*- C++ -*-===//
56 class SPIRVValue: public SPIRVEntry {
59 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode,
65 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode,
72 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode,
79 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode)
86 SPIRVValue(Op TheOpCode):SPIRVEntry(TheOpCode), Type(NULL) {}
127 class SPIRVConstant: public SPIRVValue {
132 :SPIRVValue(M, 0, OpConstant, TheType, TheId){
139 :SPIRVValue(M, 0, OpConstant, TheType, TheId){
146 :SPIRVValue(M, 0, OpConstant, TheType, TheId){
152 SPIRVConstant():SPIRVValue(OpConstant), NumWords(0){}
164 SPIRVValue::validate();
173 SPIRVValue::setWordCount(WordCount);
195 class SPIRVConstantEmpty: public SPIRVValue {
199 :SPIRVValue(M, 3, OC, TheType, TheId){
203 SPIRVConstantEmpty():SPIRVValue(OC){}
206 SPIRVValue::validate();
268 class SPIRVConstantComposite: public SPIRVValue {
272 const std::vector<SPIRVValue *> TheElements)
273 :SPIRVValue(M, TheElements.size()+3, OpConstantComposite, TheType,
279 SPIRVConstantComposite():SPIRVValue(OpConstantComposite){}
280 std::vector<SPIRVValue*> getElements()const {
284 std::vector<SPIRVValue*> Elements = getElements();
289 SPIRVValue::validate();
301 class SPIRVConstantSampler: public SPIRVValue {
308 :SPIRVValue(M, WC, OC, TheType, TheId), AddrMode(TheAddrMode),
313 SPIRVConstantSampler():SPIRVValue(OC), AddrMode(SPIRVSAM_Invalid),
335 SPIRVValue::validate();
343 class SPIRVConstantPipeStorage : public SPIRVValue {
350 :SPIRVValue(M, WC, OC, TheType, TheId), PacketSize(ThePacketSize),
355 SPIRVConstantPipeStorage() :SPIRVValue(OC), PacketSize(0),
377 SPIRVValue::validate();
385 class SPIRVForward:public SPIRVValue, public SPIRVComponentExecutionModes {
390 SPIRVValue(TheModule, 0, OC, TheId){
394 SPIRVForward():SPIRVValue(OC) {