[flang-dev] Usage of vector pgmath symbols in Flang
Varun Jayathirtha via flang-dev
flang-dev at lists.llvm.org
Wed Sep 18 15:35:29 PDT 2019
Hello Kiran,
I misunderstood your second question. Yes I meant to say vector routines are present in the libpgmath library.
There are no vector pgmath routine calls in libflang/libflangrti.
Regards,
Varun Jayathirtha
From: Kiran Chandramohan <Kiran.Chandramohan at arm.com>
Sent: Wednesday, September 18, 2019 1:31 PM
To: Varun Jayathirtha <vjayathirtha at nvidia.com>; flang-dev at lists.flang-compiler.org; flang-dev at lists.llvm.org
Subject: Re: Usage of vector pgmath symbols in Flang
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<mailto:vjayathirtha at nvidia.com>>
Sent: 17 September 2019 18:31
To: Kiran Chandramohan <Kiran.Chandramohan at arm.com<mailto:Kiran.Chandramohan at arm.com>>; flang-dev at lists.flang-compiler.org<mailto:flang-dev at lists.flang-compiler.org> <flang-dev at lists.flang-compiler.org<mailto:flang-dev at lists.flang-compiler.org>>; flang-dev at lists.llvm.org<mailto:flang-dev at lists.llvm.org> <flang-dev at lists.llvm.org<mailto: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<mailto: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<mailto:flang-dev at lists.flang-compiler.org>; flang-dev at lists.llvm.org<mailto: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/817fbe5b/attachment-0001.html>
More information about the flang-dev
mailing list