Displaying 20 results from an estimated 6000 matches similar to: "RFC: Constant folding math functions for long double"
2016 Apr 04
2
RFC: Constant folding math functions for long double
Hi Joerg,
> IMO if constant folding of transcendental functions makes a significant
difference for your program, you likely are doing something strange
already.
Alas it's not as simple as that. Currently, if you declare:
std::uniform_real_distribution<float> x;
LLVM emits two calls to logl() with constant arguments, a fdiv and a fptoui.
Libc++'s implementation is consumed and
2016 Apr 04
3
RFC: Constant folding math functions for long double
Hi,
If you're interested, include/bits/random.tcc:3312
(std::generate_canonical()). I wish I could just point people at libc++,
but that's outside of my control. As for fixing the library, that horse
bolted some time ago.
Cheers,
James
On Mon, 4 Apr 2016 at 18:50 Stephen Canon <scanon at apple.com> wrote:
> That sounds like a library issue that qualifies as “somewhat
2016 Apr 04
2
RFC: Constant folding math functions for long double
Hi Neil,
> Please not (1).
Could you please elaborate on your concern a bit more?
Cheers,
James
On Mon, 4 Apr 2016 at 15:18 Neil Henning via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Please not (1).
>
> Cheers,
> -Neil.
>
>
> On 04/04/16 14:59, James Molloy via llvm-dev wrote:
>
> Hi,
>
> Clang is currently unable to constant fold calls to
2016 Apr 04
2
RFC: Constant folding math functions for long double
Hi Neil,
I admit that at this point I haven't considered the implications of the
license MPFR is under, and at the moment I'm sticking my head in the sand
until and unless we want to go down this path.
My expectation is that we would use their exposed API - so we'd #include
<mpfr.h> and use functions from there, linking against -lmpfr and -lgmp. I
admit that this option would
2016 Apr 04
2
RFC: Constant folding math functions for long double
On Mon, Apr 04, 2016 at 09:49:24AM -0700, Reid Kleckner via llvm-dev wrote:
> An optional MPFR dependency would also be pretty painful. I expect it will
> frequently be missing and will not be exercised by most buildbots.
IMO if constant folding of transcendental functions makes a significant
difference for your program, you likely are doing something strange
already. I don't think it
2013 Oct 10
4
- problem gcc with yum
hi all,
today, I have this problem:
# yum install gcc
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.hosteurope.de
* epel: mirror.de.leaseweb.net
* extras: ftp.hosteurope.de
* updates: ftp.hosteurope.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
2013 Jul 11
1
Can't install gcc
Hi, I'm having this odd problem with being unable to install gcc, this is
what I tried
and what I'm getting as an error:
$ sudo yum install gcc.x86_64
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package:
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
Hello,
I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf.
We have our own gcc compiler that we build with crosstools-ng (based on gcc
6.3.0) and I set my environment like this:
CC=armv7a-plex-linux-gnueabihf-gcc
CXX=armv7a-plex-linux-gnueabihf-g++
CFLAGS=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
CXXFLAGS=-fPIC -DPIC
2019 Apr 17
3
[FP] Constant folding math library functions
On 4/16/19 4:18 PM, Amara Emerson wrote:
On Apr 16, 2019, at 1:47 PM, Kaylor, Andrew via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
Thanks, Hal.
I hear what you are saying about the accuracy. The problem, from my perspective, is trying to explain to users what they are going to get. The constant folding may be as accurate as the lib call would
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
At first glance, it looks like long double functions (such as fabsl and friends) are missing from your sysroot's <math.h>. Does your target support long double at all?
-Dimitry
> On 6 Feb 2018, at 09:51, Tobias Hieta via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf. We have
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
Hello Dimitry and thanks for your answer.
I am pretty sure it does indeed support long double. It's configured with
vfpv3-d16 - but I noticed that c++config.h in gcc has _GLIBCXX__HAS_FABSL
and friends are undefined. I think I need to look deeper at the
configuration of our toolchain.
long double support is required in libc++ then I gather?
-- Tobias
On Tue, Feb 6, 2018 at 11:47 AM,
2019 Jun 15
2
Planned change to IR semantics: constant expressions never have undefined behavior
On Fri, Jun 14, 2019 at 7:10 PM Chris Lattner <clattner at nondot.org> wrote:
>
>
> On Jun 14, 2019, at 4:06 PM, Cameron McInally <cameron.mcinally at nyu.edu>
> wrote:
>
>
>
> On Fri, Jun 14, 2019 at 6:58 PM Chris Lattner via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>>
>> On Jun 14, 2019, at 3:24 PM, Eli Friedman via
2010 Oct 29
3
How to scan df from a specific word?
Hi R-helpers,
I need to read some file with different lines (I don't know the number of
lines to skip) and I would like to find a way to start reading the
data.frame from the word "source".
ex:
djhsafk
asdfhkjash
shdfjkash
asfhjkash #those lines contain numbers and words, I want to skip
then but they have different sizes
asdfhjkash
asdfhjksa
source
tret 2
res 3
Can
2002 Jun 07
2
Hope fo help - functions, fits and for cycles
I need a little piece of advice concerning passing data frames
into the functions. As I do a lot of similar fits at a time, I'd like to
write a small function doing the fits for all relevant variables
automatically. However, I usually get error messages of the
following kind:
(I present here a part of a test code).
#####################################################
# Data set:
2006 Oct 27
1
(no subject)
Hi,
I have generated a profile likelihood for a parameter (x) and am
trying to get 95% confidence limits by calculating the two points
where the log likelihood (LogL) is 2 units less than the maximum
LogL. I would like to do this by linear interpolation and so I have
been trying to use the function approxfun which allows me to get a
function to calculate LogL for any value of x within
2010 Mar 03
3
[LLVMdev] folding x * 0 = 0
> I'm not sure how that would work, but it most likely wouldn't fit with the design of llvm. If this is important, I'd rather fix the representational issue.
>
>
Just
#ifdef RELAXED_FLOAT
here the code like I posted
#endif
what do you mean by the representational issue? something in the IR?
Perhaps something like the value tracking can be implemented that
tracks if a
2010 Mar 03
0
[LLVMdev] folding x * 0 = 0
On Mar 3, 2010, at 12:41 PM, Jochen Wilhelmy wrote:
>
>> I'm not sure how that would work, but it most likely wouldn't fit with the design of llvm. If this is important, I'd rather fix the representational issue.
>>
>>
> Just
> #ifdef RELAXED_FLOAT
> here the code like I posted
> #endif
Ok, that's what I thought, we don't want that in
2012 Aug 02
1
documentation for configuring folder redirection
I believe that once you have roaming profiles configured, all you need to do
to configure folder redirection is set some registry keys. I'd like to turn
that job over to our Windows sys admin. Can someone provide me with their
favorite documentation for configuring folder redirection? Keep in mind I am
passing this link along to a Windows sys admin. Our backend is samba 3.6.3
if it
2014 Aug 07
3
[LLVMdev] Proposal: Add a target lowering hook to state that target supports floating point exception behavior.
Hello All,
the patch below adds a target lowering hook to state that the target supports (or not) floating point exception behavior. The patch is small and contains one possible use for the hook (folding potentially exception raising fp operations).
Any comments?
Thanks
Pedro
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opensource1.txt
2014 Aug 08
3
[LLVMdev] Proposal: Add a target lowering hook to state that target supports floating point exception behavior.
I assume you meant to ask for ports that *don’t* support floating point exceptions. To my knowledge, neither R600 nor NVPTX support floating point exceptions.
—Owen
> On Aug 8, 2014, at 2:41 PM, Eric Christopher <echristo at gmail.com> wrote:
>
> There's a lot of cut and paste in those routines. Can you do something
> to unify it a bit? Also, do we have any ports that