[PATCH] D81905: Enhance Itanium demangler interface.

Konstantin Bobrovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 17:27:44 PDT 2020


kbobrovs added a comment.

> That having been said, did you try declaring the builtin and then declaring it as a function template in the header file?

I haven't. It seems that you mean I should declare in Builins.def something like

  LIBBUILTIN(__esimd_flat_atomic0, <signature>, <effects>, "esimd_builtins.h", CXX_LANG)

and insert the C++ templated declaration of `__esimd_flat_atomic0` into `esimd_builtins.h`, correct? I have a question then - the signature may include const references to **vectors**, how to represent those?
More generally, if we want "C++ intrinsics" there should probably be a way to represent C++ types in the signature - ?

A **vector **is `vector_type::type` from

  template <typename Ty, int N> struct vector_type {
    static constexpr int length = N;
    using type = Ty __attribute__((ext_vector_type(N)));
  };




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81905/new/

https://reviews.llvm.org/D81905





More information about the llvm-commits mailing list