Home
last modified time | relevance | path

Searched refs:initExpr (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/lld/wasm/
DWriterUtils.cpp152 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()
DOutputSections.cpp160 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()
DSyntheticSections.cpp398 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()
DWriterUtils.h48 void writeInitExpr(raw_ostream &os, const llvm::wasm::WasmInitExpr &initExpr);
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DRewriteCaseDeclarations.cpp64 if (decl.initExpr) in visitDeclarationPre()
67 decl.initExpr); in visitDeclarationPre()
DHoistConstants.cpp40 if (decl.initExpr && decl.initExpr->hasConstantValue()) in visitDeclarationPre()
DSeparateCompoundStructDeclarations.cpp67 if (declaration.initExpr) in visitDeclaration()
70 new TIntermBinary(EOpInitialize, instanceSymbol, declaration.initExpr); in visitDeclaration()
DSeparateCompoundExpressions.cpp203 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()
DAstHelpers.h25 TIntermTyped *initExpr; // Non-null iff declaration is initialized. member
DRewriteKeywords.cpp382 return *new TIntermDeclaration(&rVar, decl.initExpr); in visitDeclarationPost()
/external/angle/src/compiler/translator/
DIntermNode.h786 TIntermDeclaration(const TVariable *var, TIntermTyped *initExpr);
DIntermNode.cpp461 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()