[PATCH] D141650: [VectorUtils] Enhance VFABI demangling API

Yilong Guo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 20:23:20 PST 2023


Nuullll created this revision.
Herald added subscribers: pengfei, dmgreen, hiraditya.
Herald added a project: All.
Nuullll added reviewers: aranisumedh, lebedev.ri, sdesmalen, jdoerfert, simoll, fpetrogalli.
Nuullll published this revision for review.
Herald added subscribers: llvm-commits, StephenFan.
Herald added a project: LLVM.

This patch adds more flexibility to the original VFABI demangling API.

1. Allow demangling an empty parameter list, which is explicitly allowed by x86 VFABI doc. See section 2.6 of https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt
2. Allow passing the module as a nullptr, so that we don't check the existence of the demangled vector function name. This is useful when we want to create the widened function according to the demangling result.

Signed-off-by: Yilong Guo <yilong.guo at intel.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141650

Files:
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Analysis/VFABIDemangling.cpp
  llvm/unittests/Analysis/VectorFunctionABITest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141650.488853.patch
Type: text/x-patch
Size: 6375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/09bde26b/attachment.bin>


More information about the llvm-commits mailing list