Searched refs:initExpr (Results 1 – 12 of 12) sorted by relevance
/external/llvm-project/lld/wasm/ |
D | WriterUtils.cpp | 152 void writeInitExpr(raw_ostream &os, const WasmInitExpr &initExpr) { in writeInitExpr() argument 153 writeU8(os, initExpr.Opcode, "opcode"); in writeInitExpr() 154 switch (initExpr.Opcode) { in writeInitExpr() 156 writeSleb128(os, initExpr.Value.Int32, "literal (i32)"); in writeInitExpr() 159 writeSleb128(os, initExpr.Value.Int64, "literal (i64)"); in writeInitExpr() 162 writeU32(os, initExpr.Value.Float32, "literal (f32)"); in writeInitExpr() 165 writeU64(os, initExpr.Value.Float64, "literal (f64)"); in writeInitExpr() 168 writeUleb128(os, initExpr.Value.Global, "literal (global index)"); in writeInitExpr() 174 fatal("unknown opcode in init expr: " + Twine(initExpr.Opcode)); in writeInitExpr()
|
D | OutputSections.cpp | 160 WasmInitExpr initExpr; in finalizeContents() local 162 initExpr.Opcode = WASM_OPCODE_GLOBAL_GET; in finalizeContents() 163 initExpr.Value.Global = WasmSym::memoryBase->getGlobalIndex(); in finalizeContents() 166 initExpr.Opcode = WASM_OPCODE_I32_CONST; in finalizeContents() 167 initExpr.Value.Int32 = segment->startVA; in finalizeContents() 169 writeInitExpr(os, initExpr); in finalizeContents()
|
D | SyntheticSections.cpp | 398 WasmInitExpr initExpr; in writeBody() local 400 initExpr.Opcode = WASM_OPCODE_GLOBAL_GET; in writeBody() 401 initExpr.Value.Global = WasmSym::tableBase->getGlobalIndex(); in writeBody() 403 initExpr.Opcode = WASM_OPCODE_I32_CONST; in writeBody() 404 initExpr.Value.Int32 = config->tableBase; in writeBody() 406 writeInitExpr(os, initExpr); in writeBody()
|
D | WriterUtils.h | 48 void writeInitExpr(raw_ostream &os, const llvm::wasm::WasmInitExpr &initExpr);
|
/external/angle/src/compiler/translator/TranslatorMetalDirect/ |
D | RewriteCaseDeclarations.cpp | 64 if (decl.initExpr) in visitDeclarationPre() 67 decl.initExpr); in visitDeclarationPre()
|
D | HoistConstants.cpp | 40 if (decl.initExpr && decl.initExpr->hasConstantValue()) in visitDeclarationPre()
|
D | SeparateCompoundStructDeclarations.cpp | 67 if (declaration.initExpr) in visitDeclaration() 70 new TIntermBinary(EOpInitialize, instanceSymbol, declaration.initExpr); in visitDeclaration()
|
D | SeparateCompoundExpressions.cpp | 203 expr = ViewDeclaration(*decl).initExpr; in pullMappedExpr() 321 if (!decl.initExpr || isTerminalExpr(*decl.initExpr)) in visitDeclarationPre() 335 TIntermTyped *newInitExpr = pullMappedExpr(decl.initExpr, true); in visitDeclarationPost() 336 if (decl.initExpr == newInitExpr) in visitDeclarationPost()
|
D | AstHelpers.h | 25 TIntermTyped *initExpr; // Non-null iff declaration is initialized. member
|
D | RewriteKeywords.cpp | 382 return *new TIntermDeclaration(&rVar, decl.initExpr); in visitDeclarationPost()
|
/external/angle/src/compiler/translator/ |
D | IntermNode.h | 786 TIntermDeclaration(const TVariable *var, TIntermTyped *initExpr);
|
D | IntermNode.cpp | 461 TIntermDeclaration::TIntermDeclaration(const TVariable *var, TIntermTyped *initExpr) in TIntermDeclaration() argument 463 if (initExpr) in TIntermDeclaration() 466 new TIntermBinary(TOperator::EOpInitialize, new TIntermSymbol(var), initExpr)); in TIntermDeclaration()
|