Displaying 20 results from an estimated 6000 matches similar to: "[LLVMdev] __builtin_malloc, __builtin_calloc support in LLVM"
2012 Apr 12
0
[LLVMdev] __builtin_malloc, __builtin support
Hi,
Is "__builtin_malloc" function supported in LLVM...?
I checked in
"tools/clang/include/clang/Basic/Builtins.def",
"tools/clang/lib/CodeGen/CGBuiltin.cpp" and couldn't find the
implementation.
Could anyone please comment about it.
Thanks in advance,
Viswa
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2017 Jul 25
2
How to migrate x86_sse2_psrl_dq after LLVM v3.8?
Hi LLVM developers,
After Remove int_x86_sse2_psll_dq_bs and int_x86_sse2_psrl_dq_bs
intrinsics. The builtins aren't used by clang.
https://reviews.llvm.org/rL229069 there was no
Intrinsic::x86_sse2_psrl_dq any more, then how to migrate:
Function *F =
Intrinsic::getDeclaration(TheModule,
Intrinsic::x86_sse2_psrl_dq);
Result =
Builder.CreateCall(F,
2018 Dec 31
1
Issue with "t -> signature is meaningless, use custom typechecking"
Hello,
I was implementing the llvm_any_type in my intrinsic
def int_csa_xxx : Intrinsic<[llvm_any_ty], [llvm_i32_ty]>;
as the following in its corresponding builtins in Builtins.def:
BUILTIN(__builtin_xxx, "v.", "nt")
the "t" was sufficient here to not perform any type checking.
The type checking was handled in CGBuiltin.cpp.
This was working until
2016 Jul 22
2
HEAD compilation causes gcc internal error
After worked around the problem in SimplifyCFG.cpp (calling isCast()
instead of comparing opcode), I hit another gcc crash for
FunctionImport.cpp line 480, which I have no idea what's wrong with the
code. "Luckily", I found gcc4.8.2 and gave it a try, both crashes are gone.
*New problem though:*
/llvm-clang-trunk/src/tools/clang/lib/CodeGen/CGBuiltin.cpp: In member
function
2016 May 01
2
r267690 - [Clang][BuiltIn][AVX512]Adding intrinsics for vmovntdqa vmovntpd vmovntps instruction set
Hi,
For now no.
But I will add this three builtins to CGBuiltin.cpp.
If you want, you can be a reviewer of this change.
Regards
Michael Zuckerman
From: Craig Topper [mailto:craig.topper at gmail.com]
Sent: Thursday, April 28, 2016 04:53
To: Zuckerman, Michael <michael.zuckerman at intel.com>
Subject: Re: r267690 - [Clang][BuiltIn][AVX512]Adding intrinsics for vmovntdqa vmovntpd vmovntps
2013 Oct 10
3
[LLVMdev] A new builtin: __builtin_stack_pointer()
One of the issues the LLVMLinux project is having is with the use of
named registers in the Linux kernel code. The kernel uses something like
this in order to assign a C variable name to a register (one for each
kernel arch).
register unsigned long current_stack_pointer asm("esp");
clang doesn't allow this kind of thing which required a patch which less
efficient:
#define
2016 May 15
2
r267690 - [Clang][BuiltIn][AVX512]Adding intrinsics for vmovntdqa vmovntpd vmovntps instruction set
Hi ,
In the future, we will address this issue.
Regards
Michael Zuckerman
From: Eric Christopher [mailto:echristo at gmail.com]
Sent: Sunday, May 01, 2016 19:54
To: Zuckerman, Michael <michael.zuckerman at intel.com>; Craig Topper <craig.topper at gmail.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] r267690 - [Clang][BuiltIn][AVX512]Adding intrinsics for vmovntdqa
2012 Apr 28
1
[LLVMdev] complex library functions (creal and cimag)
On Apr 27, 2012, at 2:02 PM, Eli Friedman wrote:
> On Fri, Apr 27, 2012 at 12:09 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
>> while gcc does it in two move instructions:
>>
>> $ gcc foo1.c -S -o -O3
>> foo1:
>> .LFB0:
>> .cfi_startproc
>> movq %xmm0, -8(%rsp)
>> movss -8(%rsp), %xmm0
>>
>>
2018 Sep 06
2
Adding an trinsics in x86
Hi Everyone!
I am a newbie at llvm. So the question may be fundamental but difficult to me.
I want to add an trinsics in x86 and make the following changes.I want that max_qb can find the max of two Integers and return it.
In src/include/llvm/IR/Intrinsics.td :
let TargetPrefix = "x86" in {
def int_x86_max_qb: GCCBuiltin<"__builtin_x86_max_qb">,
2016 Jul 14
4
Let's stop using target specific intrinsics in generic code
There are a few places in llvm's generic codegen that refer to target
specific intrinsics. This is bad layering and we shouldn't do it. It
also means that if we don't build a target we still have to support all
of it's intrinsics and other such annoyances.
The main violator of this is InstCombineCalls - I'd like to push this
into the targets, and just have a case that says
2012 Apr 27
0
[LLVMdev] complex library functions (creal and cimag)
On Fri, Apr 27, 2012 at 12:09 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
> When I compile this code which includes call to crealf,
>
> $ cat foo1.c
> #include <complex.h>
>
> float foo1(complex float z) { return crealf(z); }
>
> clang emits a call to crealf,
>
> $ clang foo1.c -S -o - -O3
> foo1: # @foo1
>
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
This patch adds EmitTypeAuxAttribute() function to CGDebugInfo, which
allows other parts of clang issue auxiliary information through an
enumeration type in Dwarf information. For example, by calling
DI->EmitTypeAuxAttribute(type, "ID", 1234);
We can get following information in dwarf:
<1><3f>: Abbrev Number: 3 (DW_TAG_structure_type)
<40> DW_AT_name
2012 Jul 10
2
[LLVMdev] question about Type::canLoslesslyBitCastTo
Hi Akira,
> This is the definition of BITCAST in include/llvm/CodeGen/ISDOpcodes.h:
>
> // BITCAST - This operator converts between integer, vector and FP
> // values, as if the value was stored to memory with one type and loaded
> // from the same address with the other type (or equivalently for vector
> // format conversions, etc). The source and result are required to have
2018 Apr 09
0
Possibilities with LLVM
Hi Björn,
On 9 April 2018 at 09:43, via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 1.) Can I teach the LLVM new platform depended intrinsics?
> Like I provide assembly code and want to create a custom intrinsic for it.
Yes. You'd add a declaration to include/llvm/IR/IntrinsicsXYZ.td
(where XYZ is your target), and then you can select them with a normal
pattern in your
2012 Jul 10
0
[LLVMdev] question about Type::canLoslesslyBitCastTo
This is the definition of BITCAST in include/llvm/CodeGen/ISDOpcodes.h:
// BITCAST - This operator converts between integer, vector and FP
// values, as if the value was stored to memory with one type and loaded
// from the same address with the other type (or equivalently for vector
// format conversions, etc). The source and result are required to have
// the same bit size (e.g. f32 <->
2016 Jun 14
2
llvm intrinsics/libc/libm question
If I do
T.getArch() == xxx
TLI.setUnavailable(LibFunc::copysign)
then this works at generating a call instead of not being able to select
the ISD::FCOPYSIGN, but I don't know why I don't need to do this for other
LibFunc functions (such as floor, etc... these generate call just fine)?
Thanks,
Ryan
On Tue, Jun 14, 2016 at 11:58 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
2012 Nov 21
2
[LLVMdev] Extended Inline asm with double data type crashes clang
Thanks Rafael,
Hello All,
Could anyone please comment, which part in selectiondag need to be
understood/modified to fix this.
Regards,
Rajesh
On Wed, Nov 21, 2012 at 2:38 AM, Rafael Espíndola <
rafael.espindola at gmail.com> wrote:
> I reported http://llvm.org/pr14393 to track it.
>
> On 20 November 2012 05:18, rajesh viswabramana
> <viswabramana.rajesh at
2016 May 25
0
running intrinsics from C code
GCCBuiltin just gives it a name for clang to lookup. Generally they match
up with builtins that gcc also implements, but that's not a requirement.
If you add a builtin with the same name to the builtin file in clang's
include/clang/Basic/Builtins*.def then they will find each other.
You can also just add a builtin to clang's builtin file and catch it in
clang's
2012 Nov 22
0
[LLVMdev] Extended Inline asm with double data type crashes clang
Hi all,
I tried same code on gcc for arm(hard float),
double f2 ()
{
double x = 10.0;
asm ("" : "=r" (x) : "0" (x));
return x;
}
> arm-linux-gnueabi-gcc -S -mhard-float pr39058.c -O2
Generates proper code,
mov r3, #0
mov r2, #0
movt r3, 16420
fmdrr d0, r2, r3
bx lr
But llvm crashes, If data type is "double",
2012 Jul 16
0
[LLVMdev] question about Type::canLoslesslyBitCastTo
Hi Duncan and llvm developers,
The attached patch makes the function return true if the conversion is
between a vector and an integer of the same size.
Please review when you have time.
On Tue, Jul 10, 2012 at 12:21 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Akira,
>
> > This is the definition of BITCAST in include/llvm/CodeGen/ISDOpcodes.h:
> >
> > //