MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / unpackStruct

Function unpackStruct

lib/llvm/compiler.cpp:5863–5872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5861};
5862
5863std::vector<LLVM::Value> unpackStruct(LLVM::Builder &Builder,
5864 LLVM::Value Struct) noexcept {
5865 const auto N = Struct.getType().getStructNumElements();
5866 std::vector<LLVM::Value> Ret;
5867 Ret.reserve(N);
5868 for (unsigned I = 0; I < N; ++I) {
5869 Ret.push_back(Builder.createExtractValue(Struct, I));
5870 }
5871 return Ret;
5872}
5873
5874} // namespace
5875

Callers 4

compileCallOpMethod · 0.85
compileIndirectCallOpMethod · 0.85
compileCallRefOpMethod · 0.85
compileMethod · 0.85

Calls 3

getStructNumElementsMethod · 0.80
createExtractValueMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected