[flang-dev] Usage of vector pgmath symbols in Flang

Kiran Chandramohan via flang-dev flang-dev at lists.llvm.org
Wed Sep 18 13:31:05 PDT 2019


Hello Varun,

Thanks for confirming that flang generates only calls to scalar routines and these are later converted to vector calls by changes in LLVM.

When you say vector routines are present in the Flang libraries, I am assuming that you meant to say the vector routines are present in the libpgmath library. My other question was whether there are calls to vector pgmath routines in libflang/libflangrti.

--Kiran
________________________________
From: Varun Jayathirtha <vjayathirtha at nvidia.com>
Sent: 17 September 2019 18:31
To: Kiran Chandramohan <Kiran.Chandramohan at arm.com>; flang-dev at lists.flang-compiler.org <flang-dev at lists.flang-compiler.org>; flang-dev at lists.llvm.org <flang-dev at lists.llvm.org>
Subject: RE: Usage of vector pgmath symbols in Flang


Hi Kiran,

Vector pgmath routines are present in the Flang libraries, however the Flang front end only generates scalar pgmath calls.

The LLVM vectorizer has been modified to recognize scalar pgmath calls and generate appropriate vector calls. Here’s the PR that introduced this change if you’re interested:
https://github.com/flang-compiler/llvm/pull/43/files

Regards,
Varun Jayathirtha



From: flang-dev <flang-dev-bounces at lists.flang-compiler.org> On Behalf Of Kiran Chandramohan
Sent: Friday, September 13, 2019 7:11 AM
To: flang-dev at lists.flang-compiler.org; flang-dev at lists.llvm.org
Subject: [Flang-dev] Usage of vector pgmath symbols in Flang



Hi,

Are vector pgmath symbols called directly in Flang? Are they directly used in the Flang libraries?



As far as I understand it is scalar pgmath symbols that are always generated by Flang and these are then converted to vector symbols by veclib in LLVM.

Thanks,
Kiran

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
________________________________
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/flang-dev/attachments/20190918/919c10f5/attachment.html>


More information about the flang-dev mailing list