[PATCH] D78599: [SVE] Add Scalable vector support to C api

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 16:49:02 PDT 2020


ctetreau created this revision.
Herald added a reviewer: deadalnix.
Herald added subscribers: llvm-commits, psnobl, rkruppe, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
ctetreau added a comment.
ctetreau added a parent revision: D77587: [SVE] Add new VectorType subclasses.

This is sort of just an MVP first draft of the C api support. This basically implements the original C++ api. This is a little better though because LLVMVectorType does not have the default IsScalable = true parameter.

I'm unsure of how much value exposing FixedVectorType and ScalableVectorType through the C api would have given the fact that everything is passed around by a LLVMTypeRef handle. This requires some more thought.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78599

Files:
  llvm/include/llvm-c/Core.h
  llvm/lib/IR/Core.cpp
  llvm/tools/llvm-c-test/debuginfo.c
  llvm/tools/llvm-c-test/echo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78599.259129.patch
Type: text/x-patch
Size: 3831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/cf758327/attachment.bin>


More information about the llvm-commits mailing list