Home
last modified time | relevance | path

Searched refs:TIntermTyped (Results 1 – 25 of 218) sorted by relevance

123456789

/third_party/glslang/glslang/HLSL/
DhlslParseHelper.h73 TIntermTyped* handleVariable(const TSourceLoc&, const TString* string);
74TIntermTyped* handleBracketDereference(const TSourceLoc&, TIntermTyped* base, TIntermTyped* index);
75 TIntermTyped* handleBracketOperator(const TSourceLoc&, TIntermTyped* base, TIntermTyped* index);
77TIntermTyped* handleBinaryMath(const TSourceLoc&, const char* str, TOperator op, TIntermTyped* lef…
78TIntermTyped* handleUnaryMath(const TSourceLoc&, const char* str, TOperator op, TIntermTyped* chil…
79 TIntermTyped* handleDotDereference(const TSourceLoc&, TIntermTyped* base, const TString& field);
80 bool isBuiltInMethod(const TSourceLoc&, TIntermTyped* base, const TString& field);
90 TIntermNode* handleDeclare(const TSourceLoc&, TIntermTyped*);
91 TIntermNode* handleReturnValue(const TSourceLoc&, TIntermTyped*);
92 void handleFunctionArgument(TFunction*, TIntermTyped*& arguments, TIntermTyped* newArg);
[all …]
DhlslGrammar.h102 bool acceptParenExpression(TIntermTyped*&);
103 bool acceptExpression(TIntermTyped*&);
104 bool acceptInitializer(TIntermTyped*&);
105 bool acceptAssignmentExpression(TIntermTyped*&);
106 bool acceptConditionalExpression(TIntermTyped*&);
107 bool acceptBinaryExpression(TIntermTyped*&, PrecedenceLevel);
108 bool acceptUnaryExpression(TIntermTyped*&);
109 bool acceptPostfixExpression(TIntermTyped*&);
110 bool acceptConstructor(TIntermTyped*&);
111 …bool acceptFunctionCall(const TSourceLoc&, TString& name, TIntermTyped*&, TIntermTyped* objectBase…
[all …]
DhlslParseHelper.cpp222 bool HlslParseContext::lValueErrorCheck(const TSourceLoc& loc, const char* op, TIntermTyped* node) in lValueErrorCheck()
228 TIntermTyped* object = lhsAsAggregate->getSequence()[0]->getAsTyped(); in lValueErrorCheck()
255 TIntermTyped* HlslParseContext::handleLvalue(const TSourceLoc& loc, const char* op, TIntermTyped*& … in handleLvalue()
264 TIntermTyped* lhs = nodeAsUnary ? nodeAsUnary->getOperand() : in handleLvalue()
279 …const auto makeLoad = [&](TIntermSymbol* rhsTmp, TIntermTyped* object, TIntermTyped* coord, const … in handleLvalue()
292 const auto makeStore = [&](TIntermTyped* object, TIntermTyped* coord, TIntermSymbol* rhsTmp) { in handleLvalue()
304 const auto makeBinary = [&](TOperator op, TIntermTyped* lhs, TIntermTyped* rhs) { in handleLvalue()
358 const auto addSwizzle = [&](TIntermSymbol* var, TIntermBinary* swizzle) -> TIntermTyped* { in handleLvalue()
375 TIntermTyped* object = lhsAsAggregate->getSequence()[0]->getAsTyped(); in handleLvalue()
376 TIntermTyped* coord = lhsAsAggregate->getSequence()[1]->getAsTyped(); in handleLvalue()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DParseHelper.h123 bool lValueErrorCheck(const TSourceLoc &line, const char* op, TIntermTyped*);
124 bool constErrorCheck(TIntermTyped* node);
125 bool integerErrorCheck(TIntermTyped* node, const char* token);
128 bool arraySizeErrorCheck(const TSourceLoc &line, TIntermTyped* expr, int& size);
132 bool boolErrorCheck(const TSourceLoc&, const TIntermTyped*);
158 TIntermTyped *initializer, TIntermNode **intermNode);
165 … const TSourceLoc &indexLocation, TIntermTyped *indexExpression);
167 … const TSourceLoc &initLocation, TIntermTyped *initializer);
172 … const TSourceLoc &indexLocation, TIntermTyped *indexExpression,
173 … const TSourceLoc &initLocation, TIntermTyped *initializer);
[all …]
Dlocalintermediate.h35TIntermTyped* addBinaryMath(TOperator op, TIntermTyped* left, TIntermTyped* right, const TSourceLo…
36 TIntermTyped* addAssign(TOperator op, TIntermTyped* left, TIntermTyped* right, const TSourceLoc&);
37 TIntermTyped* addIndex(TOperator op, TIntermTyped* base, TIntermTyped* index, const TSourceLoc&);
38 TIntermTyped* addUnaryMath(TOperator op, TIntermTyped* child, const TSourceLoc&, const TType*);
42 TIntermNode* addSelection(TIntermTyped* cond, TIntermNodePair code, const TSourceLoc&);
43TIntermTyped* addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped* falseBlock, …
44 …TIntermSwitch *addSwitch(TIntermTyped *init, TIntermAggregate *statementList, const TSourceLoc &li…
45 TIntermCase *addCase(TIntermTyped *condition, const TSourceLoc &line);
46 TIntermTyped* addComma(TIntermTyped* left, TIntermTyped* right, const TSourceLoc&);
48 TIntermTyped* promoteConstantUnion(TBasicType, TIntermConstantUnion*);
[all …]
DOutputASM.h203 …Function(int label, const char *name, TIntermSequence *arg, TIntermTyped *ret) : label(label), nam… in Function()
207 …Function(int label, const TString &name, TIntermSequence *arg, TIntermTyped *ret) : label(label), … in Function()
214 TIntermTyped *ret;
268 sw::Shader::Opcode getOpcode(sw::Shader::Opcode op, TIntermTyped *in) const;
269 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode…
270 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst, int dstIndex, TIntermNode *src0 = 0, i…
272 Instruction *emitCast(TIntermTyped *dst, TIntermTyped *src);
273 Instruction *emitCast(TIntermTyped *dst, int dstIndex, TIntermTyped *src, int srcIndex);
274 …void emitBinary(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode *…
275 …void emitAssign(sw::Shader::Opcode op, TIntermTyped *result, TIntermTyped *lhs, TIntermTyped *src0…
[all …]
Dintermediate.h250 class TIntermTyped; variable
277 virtual TIntermTyped* getAsTyped() { return 0; } in getAsTyped()
305 class TIntermTyped : public TIntermNode {
307 TIntermTyped(const TType& t) : type(t) { } in TIntermTyped() function
308 virtual TIntermTyped* getAsTyped() { return this; } in getAsTyped()
338 static TIntermTyped *CreateIndexNode(int index);
355 TIntermNode *aInit, TIntermTyped* aCond, TIntermTyped* aExpr, in TIntermLoop()
369 TIntermTyped* getCondition() { return cond; } in getCondition()
370 TIntermTyped* getExpression() { return expr; } in getExpression()
379 TIntermTyped* cond; // loop exit condition
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteCubeMapSamplersAs2DArray.cpp30 TIntermTyped *DerivativeQuotient(TIntermTyped *u, in DerivativeQuotient()
31 TIntermTyped *du, in DerivativeQuotient()
32 TIntermTyped *v, in DerivativeQuotient()
33 TIntermTyped *dv, in DerivativeQuotient()
34 TIntermTyped *vRecip) in DerivativeQuotient()
44 TIntermTyped *Swizzle1(TIntermTyped *array, int i) in Swizzle1()
49 TIntermTyped *IndexDirect(TIntermTyped *array, int i) in IndexDirect()
58 TIntermTyped *x, in TransformXMajor()
59 TIntermTyped *y, in TransformXMajor()
60 TIntermTyped *z, in TransformXMajor()
[all …]
DRewriteAtomicCounters.cpp55 TIntermTyped *CreateUniformBufferOffset(const TIntermTyped *uniformBufferOffsets, int binding) in CreateUniformBufferOffset()
78 TIntermBinary *CreateAtomicCounterRef(TIntermTyped *atomicCounterExpression, in CreateAtomicCounterRef()
80 const TIntermTyped *uniformBufferOffsets) in CreateAtomicCounterRef()
113 TIntermTyped *atomicCounterIndex = nullptr; in CreateAtomicCounterRef()
149 TIntermTyped *index = CreateUniformBufferOffset(uniformBufferOffsets, binding); in CreateAtomicCounterRef()
185 const TIntermTyped *acbBufferOffsets) in RewriteAtomicCountersTraverser()
200 TIntermTyped *variable = sequence.front()->getAsTyped(); in visitDeclaration()
255 TIntermTyped *substituteCall = CreateBuiltInFunctionCallNode( in convertBuiltinFunction()
290 TIntermTyped *param = (*node->getSequence())[0]->getAsTyped(); in convertBuiltinFunction()
297 TIntermTyped *substituteCall = CreateBuiltInFunctionCallNode( in convertBuiltinFunction()
[all …]
DInitializeVariables.cpp25 void AddArrayZeroInitSequence(const TIntermTyped *initializedNode,
31 void AddStructZeroInitSequence(const TIntermTyped *initializedNode,
37 TIntermBinary *CreateZeroInitAssignment(const TIntermTyped *initializedNode) in CreateZeroInitAssignment()
39 TIntermTyped *zero = CreateZeroNode(initializedNode->getType()); in CreateZeroInitAssignment()
43 void AddZeroInitSequence(const TIntermTyped *initializedNode, in AddZeroInitSequence()
68 TIntermTyped *fieldIndexRef = CreateIndexNode(static_cast<int>(fieldIndex)); in AddZeroInitSequence()
69 TIntermTyped *fieldReference = in AddZeroInitSequence()
72 TIntermTyped *fieldZero = CreateZeroNode(*field.type()); in AddZeroInitSequence()
73 TIntermTyped *assignment = in AddZeroInitSequence()
84 void AddStructZeroInitSequence(const TIntermTyped *initializedNode, in AddStructZeroInitSequence()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.h53 class TIntermTyped; variable
87 virtual TIntermTyped *getAsTyped() { return nullptr; } in getAsTyped()
129 class TIntermTyped : public TIntermNode
132 TIntermTyped() {} in TIntermTyped() function
134 virtual TIntermTyped *deepCopy() const = 0;
136 TIntermTyped *getAsTyped() override { return this; } in getAsTyped()
138 virtual TIntermTyped *fold(TDiagnostics *diagnostics) { return this; } in fold()
173 TIntermTyped(const TIntermTyped &node);
191 TIntermTyped *cond,
192 TIntermTyped *expr,
[all …]
DParseContext.h103 TIntermTyped *parseVariableIdentifier(const TSourceLoc &location,
124 bool checkCanBeLValue(const TSourceLoc &line, const char *op, TIntermTyped *node);
125 void checkIsConst(TIntermTyped *node);
126 void checkIsScalarInteger(TIntermTyped *node, const char *token);
133 unsigned int checkIsValidArraySize(const TSourceLoc &line, TIntermTyped *expr);
139 bool checkIsScalarBool(const TSourceLoc &line, const TIntermTyped *type);
205 TIntermTyped *initializer,
209 TIntermTyped *initializer,
214 TIntermTyped *expr,
220 TIntermNode *addIfElse(TIntermTyped *cond, TIntermNodePair code, const TSourceLoc &loc);
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.h53 class TIntermTyped; variable
87 virtual TIntermTyped *getAsTyped() { return nullptr; } in getAsTyped()
134 class TIntermTyped : public TIntermNode
137 TIntermTyped();
139 virtual TIntermTyped *deepCopy() const override = 0;
141 TIntermTyped *getAsTyped() override { return this; } in getAsTyped()
143 virtual TIntermTyped *fold(TDiagnostics *diagnostics) { return this; } in fold()
195 TIntermTyped(const TIntermTyped &node);
215 TIntermTyped *cond,
216 TIntermTyped *expr,
[all …]
DParseContext.h106 TIntermTyped *parseVariableIdentifier(const TSourceLoc &location,
127 bool checkCanBeLValue(const TSourceLoc &line, const char *op, TIntermTyped *node);
128 void checkIsConst(TIntermTyped *node);
129 void checkIsScalarInteger(TIntermTyped *node, const char *token);
136 unsigned int checkIsValidArraySize(const TSourceLoc &line, TIntermTyped *expr);
145 bool checkIsScalarBool(const TSourceLoc &line, const TIntermTyped *type);
217 TIntermTyped *initializer,
221 TIntermTyped *initializer,
226 TIntermTyped *expr,
232 TIntermNode *addIfElse(TIntermTyped *cond, TIntermNodePair code, const TSourceLoc &loc);
[all …]
DShaderStorageBlockOutputHLSL.h51 void outputStoreFunctionCallPrefix(TIntermTyped *node);
53 void outputLoadFunctionCall(TIntermTyped *node);
55 void outputLengthFunctionCall(TIntermTyped *node);
57 void outputAtomicMemoryFunctionCallPrefix(TIntermTyped *node, TOperator op);
62 void traverseSSBOAccess(TIntermTyped *node, SSBOMethod method);
63 TIntermTyped *traverseNode(TInfoSinkBase &out,
64 TIntermTyped *node,
66 int getMatrixStride(TIntermTyped *node,
70 TIntermTyped *writeEOpIndexDirectOrIndirectOutput(TInfoSinkBase &out,
74 TIntermTyped *createFieldOffset(const TField *field, BlockMemberInfo *blockMemberInfo);
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteCubeMapSamplersAs2DArray.cpp30 TIntermTyped *variable, in GetValueFromNeighbor()
33 TIntermTyped *neighborValue = in GetValueFromNeighbor()
49 TIntermTyped *variable, in GetDiffWithNeighbor()
52 TIntermTyped *neighborValue = in GetDiffWithNeighbor()
54 TIntermTyped *absNeighborValue = new TIntermUnary(EOpAbs, neighborValue, nullptr); in GetDiffWithNeighbor()
66 TIntermTyped *gl_HelperInvocation) in IsNeighborNonHelper()
71 TIntermTyped *gl_HelperInvocationAsFloat = in IsNeighborNonHelper()
76 TIntermTyped *isNeighborNonHelperValue = in IsNeighborNonHelper()
90 TIntermTyped *l, in GetLayerFromNonHelperInvocation()
105 TIntermTyped *horizontalIsNonHelper; in GetLayerFromNonHelperInvocation()
[all …]
DVectorizeVectorScalarArithmetic.cpp51 static TIntermTyped *Vectorize(TIntermTyped *node,
59 TIntermTyped *VectorizeVectorScalarArithmeticTraverser::Vectorize( in Vectorize()
60 TIntermTyped *node, in Vectorize()
70 TIntermTyped *vectorizedFolded = vectorized->fold(nullptr); in Vectorize()
87 TIntermTyped *left = node->getLeft(); in visitBinary()
88 TIntermTyped *right = node->getRight(); in visitBinary()
110 TIntermTyped *leftVectorized = Vectorize(left, right->getType(), &originalNodeFate); in visitBinary()
120 TIntermTyped *rightVectorized = Vectorize(right, left->getType(), &originalNodeFate); in visitBinary()
139 TIntermTyped *left = argBinary->getLeft(); in replaceMathInsideConstructor()
140 TIntermTyped *right = argBinary->getRight(); in replaceMathInsideConstructor()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DSeparateCompoundExpressions.cpp36 bool IsIndex(TIntermTyped &expr) in IsIndex()
45 bool ViewBinaryChain(TOperator op, TIntermTyped &node, std::vector<TIntermTyped *> &out) in ViewBinaryChain()
53 TIntermTyped *left = binary->getLeft(); in ViewBinaryChain()
54 TIntermTyped *right = binary->getRight(); in ViewBinaryChain()
69 std::vector<TIntermTyped *> ViewBinaryChain(TIntermBinary &node) in ViewBinaryChain()
71 std::vector<TIntermTyped *> chain; in ViewBinaryChain()
88 TIntermTyped &reassociateRight(TIntermBinary &node) in reassociateRight()
91 std::vector<TIntermTyped *> chain = ViewBinaryChain(node); in reassociateRight()
93 TIntermTyped *result = chain.back(); in reassociateRight()
102 TIntermTyped *part = *iter; in reassociateRight()
[all …]
DAstHelpers.h25 TIntermTyped *initExpr; // Non-null iff declaration is initialized.
72 TIntermTyped &GetArg(const TIntermAggregate &call, size_t index);
75 void SetArg(TIntermAggregate &call, size_t index, TIntermTyped &arg);
87 TIntermBinary &AccessField(TIntermTyped &object, const ImmutableString &fieldName);
91 TIntermBinary &AccessFieldByIndex(TIntermTyped &object, int index);
95 TIntermBinary &AccessIndex(TIntermTyped &indexableNode, int index);
100 TIntermTyped &AccessIndex(TIntermTyped &node, const int *index);
104 TIntermTyped &SubVector(TIntermTyped &vectorNode, int begin, int end);
146 TIntermTyped &CoerceSimple(TBasicType toBasicType,
147 TIntermTyped &fromNode,
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DSpecializationConstant.h17 class TIntermTyped; variable
34 TIntermTyped *getMultiplierXForDFdx();
35 TIntermTyped *getMultiplierYForDFdx();
36 TIntermTyped *getMultiplierXForDFdy();
37 TIntermTyped *getMultiplierYForDFdy();
38 TIntermTyped *getPreRotationMatrix();
39 TIntermTyped *getFragRotationMatrix();
40 TIntermTyped *getFlipXY();
41 TIntermTyped *getNegFlipXY();
42 TIntermTyped *getFlipY();
[all …]
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.h173 virtual bool lValueErrorCheck(const TSourceLoc&, const char* op, TIntermTyped*);
174 virtual void rValueErrorCheck(const TSourceLoc&, const char* op, TIntermTyped*);
326 TIntermTyped* handleVariable(const TSourceLoc&, TSymbol* symbol, const TString* string);
327TIntermTyped* handleBracketDereference(const TSourceLoc&, TIntermTyped* base, TIntermTyped* index);
328 void handleIndexLimits(const TSourceLoc&, TIntermTyped* base, TIntermTyped* index);
336 void handleIoResizeArrayAccess(const TSourceLoc&, TIntermTyped* base);
341TIntermTyped* handleBinaryMath(const TSourceLoc&, const char* str, TOperator op, TIntermTyped* lef…
342TIntermTyped* handleUnaryMath(const TSourceLoc&, const char* str, TOperator op, TIntermTyped* chil…
343 TIntermTyped* handleDotDereference(const TSourceLoc&, TIntermTyped* base, const TString& field);
344 TIntermTyped* handleDotSwizzle(const TSourceLoc&, TIntermTyped* base, const TString& field);
[all …]
Dlocalintermediate.h502 TIntermTyped* addConversion(TOperator, const TType&, TIntermTyped*);
503 …std::tuple<TIntermTyped*, TIntermTyped*> addPairConversion(TOperator op, TIntermTyped* node0, TInt…
504 TIntermTyped* addUniShapeConversion(TOperator, const TType&, TIntermTyped*);
505 TIntermTyped* addConversion(TBasicType convertTo, TIntermTyped* node) const;
506 void addBiShapeConversion(TOperator, TIntermTyped*& lhsNode, TIntermTyped*& rhsNode);
507 TIntermTyped* addShapeConversion(const TType&, TIntermTyped*);
508TIntermTyped* addBinaryMath(TOperator, TIntermTyped* left, TIntermTyped* right, const TSourceLoc&);
509TIntermTyped* addAssign(TOperator op, TIntermTyped* left, TIntermTyped* right, const TSourceLoc&);
510TIntermTyped* addIndex(TOperator op, TIntermTyped* base, TIntermTyped* index, const TSourceLoc&);
511 TIntermTyped* addUnaryMath(TOperator, TIntermTyped* child, const TSourceLoc&);
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteRowMajorMatrices.cpp107 TIntermTyped *node, in CopyToTempVariable()
117 TIntermAggregate *CreateStructCopyCall(const TFunction *copyFunc, TIntermTyped *expression) in CreateStructCopyCall()
123 TIntermTyped *CreateTransposeCall(TSymbolTable *symbolTable, TIntermTyped *expression) in CreateTransposeCall()
153 TIntermTyped *rhs = binaryNode->getRight()->deepCopy(); in GetIndex()
163 TIntermTyped *ReplicateIndexNode(TSymbolTable *symbolTable, in ReplicateIndexNode()
165 TIntermTyped *lhs, in ReplicateIndexNode()
178 TIntermTyped *rhs = indices->front()->getAsTyped(); in ReplicateIndexNode()
188 bool IsConvertedField(TIntermTyped *indexNode, in IsConvertedField()
220 TransformArrayHelper(TIntermTyped *baseExpression) in TransformArrayHelper()
226 TIntermTyped *getNextElement(TIntermTyped *valueExpression, TIntermTyped **valueElementOut) in getNextElement()
[all …]
/third_party/glslang/glslang/Include/
Dintermediate.h1069 class TIntermTyped; variable
1089 virtual glslang::TIntermTyped* getAsTyped() { return nullptr; } in getAsTyped()
1102 virtual const glslang::TIntermTyped* getAsTyped() const { return nullptr; } in getAsTyped()
1135 class TIntermTyped : public TIntermNode {
1137 TIntermTyped(const TType& t) { type.shallowCopy(t); } in TIntermTyped() function
1138 TIntermTyped(TBasicType basicType) { TType bt(basicType); type.shallowCopy(bt); } in TIntermTyped() function
1139 virtual TIntermTyped* getAsTyped() { return this; } in getAsTyped()
1140 virtual const TIntermTyped* getAsTyped() const { return this; } in getAsTyped()
1166 TIntermTyped& operator=(const TIntermTyped&);
1175 TIntermLoop(TIntermNode* aBody, TIntermTyped* aTest, TIntermTyped* aTerminal, bool testFirst) : in TIntermLoop()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DRewriteR32fImages.cpp31 TIntermTyped *RewriteBuiltinFunctionCall(TCompiler *compiler,
53 TIntermTyped *rewritten = in visitAggregate()
74 TIntermTyped *RewriteExpression(TCompiler *compiler, in RewriteExpression()
76 TIntermTyped *expression, in RewriteExpression()
89 TIntermTyped *rewritten = block.getChildNode(0)->getAsTyped(); in RewriteExpression()
113 TIntermTyped *RewriteBuiltinFunctionCall(TCompiler *compiler, in RewriteBuiltinFunctionCall()
134 TIntermTyped *imageExpression = (*arguments)[0]->getAsTyped(); in RewriteBuiltinFunctionCall()
158 TIntermTyped *replacementExpression = new TIntermSymbol(replacementImage); in RewriteBuiltinFunctionCall()
163 TIntermTyped *index = asBinary->getRight(); in RewriteBuiltinFunctionCall()
190 TIntermTyped *arg = (*arguments)[argIndex]->getAsTyped(); in RewriteBuiltinFunctionCall()
[all …]

123456789