search for: mathelisions

Displaying 2 results from an estimated 2 matches for "mathelisions".

2016 Sep 20
4
LLVM v3.9.0 and math built-ins
...tants is not terribly common in C code (mostly contrived test cases), it is a lot more common in real C++ code via template expansions and inlining. With ‘-O3 -S -emit-llvm -fno-math-errno’ plus my change to call ‘setDoesNotAccessMemory()’, the IR generated is as follows: ; ModuleID = 'src/mathElisions.c' source_filename = "src/mathElisions.c" target datalayout = "e-m:e-p:32:32-f64:64-i64:64-v128:64-v64:64-v32:32-v16:16-n8:16:32-S64" target triple = "shave" ; Function Attrs: nounwind readnone define i32 @useMathName() local_unnamed_addr #0 { %1 = tail...
2016 Sep 16
2
LLVM v3.9.0 and math built-ins
A little while ago I asked a question on CFE-Dev about a change in the behaviour of programs using the ISO C math functions, although that question should have been put to LLVM-Dev. But I got excellent clarification of the problem anyway. However, since then I have been trying to adapt our out-of-tree implementation to get the previous behaviour. The problem is that something like: #include