[all-commits] [llvm/llvm-project] a0a51a: [ORC][ORC-RT] Add SimplePackedSerialization suppor...

lhames via All-commits all-commits at lists.llvm.org
Thu Dec 22 17:39:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0a51a805fdbe9d6a0f87d3746c39111d95cfb8b
      https://github.com/llvm/llvm-project/commit/a0a51a805fdbe9d6a0f87d3746c39111d95cfb8b
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M compiler-rt/lib/orc/simple_packed_serialization.h
    M compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
    M llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
    M llvm/unittests/ExecutionEngine/Orc/SimplePackedSerializationTest.cpp

  Log Message:
  -----------
  [ORC][ORC-RT] Add SimplePackedSerialization support for optionals.

This allows optionals to be serialized and deserialized, and used as arguments
and return values in SPS wrapper functions.

Serialization of optional values is indicated by use of the SPSOptional tag.
SPSOptionals are serialized serialized as a bool (false for no value, true for
value) plus the serialization of the contained value if any. Serialization
to/from std::optional is included in this commit.

This commit includes updates to SimplePackedSerialization in both ORC and the
ORC runtime.

, std::optional serialization.




More information about the All-commits mailing list