similar to: [LLVMdev] New Attribute from clang to llvm

Displaying 20 results from an estimated 70000 matches similar to: "[LLVMdev] New Attribute from clang to llvm"

2019 Mar 04
2
Add Bitwidth Attribute in Clang without Modification in Source Code of Clang
I've actually got an implementation of this as an arbitrary precision integer extension that I've written up an RFC for (but not submitted). Below is my copy/pasted RFC (again, not reviewed, but I DO have an implementation of it that I need to prepare for review). I suspect my implementation will do what you need out of it. Its actually more significant than just adding a normal
2013 Jan 09
2
[LLVMdev] attributes
On 01/09/2013 01:19 PM, Sean Silva wrote: > On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote: >> Does anyone know offhand where this gets added to clang and where the hook >> for processing >> in llc is? >> >> I think that this code has changed recently. > There's
2013 Jan 10
1
[LLVMdev] attributes
On 01/09/2013 02:44 PM, Eli Friedman wrote: > On Wed, Jan 9, 2013 at 2:19 PM, reed kotler <rkotler at mips.com> wrote: >> On 01/09/2013 01:19 PM, Sean Silva wrote: >>> On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote: >>>> Does anyone know offhand where this gets added to clang and where the >>>> hook >>>> for
2013 Jan 09
0
[LLVMdev] attributes
On Wed, Jan 9, 2013 at 2:19 PM, reed kotler <rkotler at mips.com> wrote: > On 01/09/2013 01:19 PM, Sean Silva wrote: >> >> On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote: >>> >>> Does anyone know offhand where this gets added to clang and where the >>> hook >>> for processing >>> in llc is?
2013 Jan 09
0
[LLVMdev] attributes
On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote: > Does anyone know offhand where this gets added to clang and where the hook > for processing > in llc is? > > I think that this code has changed recently. There's <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>. If that's not up to date please let me know. --
2013 Oct 28
1
[LLVMdev] Is there any tutorial about using Clang to find all the basic control block?
I want to use Clang to do a *source to source transformation* of cpp code, I have achieve certain goals like this tutorial<http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/> and currently I am trying to assign a unique ID to each basic control block. Could anybody give me some help about how to find the basic control block? Be more specified, I think
2003 Feb 04
1
test for two samples
Hi R-users, My question is more methodological one, rather than technical. I have to samples representing residuals based on two measurements techniques (resid1,resid2; n=69). I need to compare two samples, to reject one technique (the worse one), and to keep the one which gave lower residuals (better one). What to look for? What should I analyse? Means, variance, std. deviations? Based on
2018 Apr 06
0
[RFC PATCH 2/3] netdev: kernel-only IFF_HIDDEN netdevice
(put discussions back on list which got accidentally removed) On Tue, Apr 3, 2018 at 4:08 PM, Stephen Hemminger <stephen at networkplumber.org> wrote: > On Tue, 3 Apr 2018 12:04:38 -0700 > Siwei Liu <loseweigh at gmail.com> wrote: > >> On Tue, Apr 3, 2018 at 10:35 AM, Stephen Hemminger >> <stephen at networkplumber.org> wrote: >> > On Sun, 1 Apr
2010 Jun 18
0
[LLVMdev] Fwd: Re: Adding an attribute to clang
Oops, I sent this to the wrong list. Apologies. Sean -------- Original Message -------- Subject: Re: Adding an attribute to clang Date: Thu, 17 Jun 2010 19:58:51 -0600 From: Sean Hunt <rideau3 at gmail.com> To: cfe-commits at cs.uiuc.edu On 06/17/2010 07:22 PM, Nelson Elhage wrote: > Hi Sean, > > I've been working on a patch to implement -finstrument-functions in > clang,
2015 Mar 24
2
[LLVMdev] Propagate clang attribute to IR
Hi, I want to *tag* some functions with some *flags*. I was using annotate((“myFlag”)) and everything was working fine until I tried on ObjC method. It seems that clang just ignore it. So, to be able to *flag* my functions I’m trying to add a *real* attribute to clang. I’ve added a new attribute to clang in tools/clang/include/clang/Basic/Attr.td: def NoFLA : Attr { let Spellings =
2015 Mar 24
2
[LLVMdev] Propagate clang attribute to IR
> On 24 Mar 2015, at 14:55, Aaron Ballman <aaron at aaronballman.com> wrote: > > On Tue, Mar 24, 2015 at 9:48 AM, Rinaldini Julien > <julien.rinaldini at heig-vd.ch> wrote: >> Hi, >> >> I want to *tag* some functions with some *flags*. I was using annotate((“myFlag”)) and everything was working fine until I tried on ObjC method. It seems that clang just
2017 Sep 18
1
Clang/LLVM 5.0 optnone attribute with -O0
You can also add the -Xclang -disable-O0-optnone flag to your command line. This will disable the implicit optnone when compiling with O0. Cheers, Michael On Mon, Sep 18, 2017 at 7:27 AM +0200, "Craig Topper via llvm-dev" <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: To prevent optnone from being added you can replace -O0 with "-O1 -Xclang
2019 Jan 02
0
[PATCH nbdkit v2 2/2] include: Only use attribute((format)) on GCC or Clang.
Allow [in theory at least - it's not tested] the public API header files to be consumed by a compiler which doesn't support attribute((format)), a non-standard C extension. Note that we still require GCC or Clang for compiling nbdkit. --- include/nbdkit-common.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/nbdkit-common.h
2017 Sep 18
2
Clang/LLVM 5.0 optnone attribute with -O0
Hi, We have a research LLVM-based domain-specific code generator that we want to upgrade form LLVM 4.0 to 5.0. The code generator is written as an out-of-tree loadable module for opt. Till Clang 4.0 we were compiling the front-end code (annotated C++) using -O0. The generated bitcode was further processed using opt with our module loaded. In Clang 5.0 we see that using -O0 adds the optnone
2003 Oct 30
1
samba3 backend ldap max groups..
Hello, I'm testing samba3 with the backend ldap on Linux to replace our NT 4 Domain. OS: Linux UL1 Samba3 OpenLdap 2.1 Samba3 works as PDC with the backend ldapsam. There a problem I'm still hanging. If a user is member of more then 32 groups I just can work with my defaultGroup (atrribute: sambaPrimaryGroupSID), all other authorisation will be denied although the user is member of all
2004 Nov 10
1
Netscape samba schema needs updating!
Hi, This one is for the samba team i think... Intro... Im using Sun One Directory Server 5.2 as my LDAP, so i used the samba-schema-netscapeds5.x schema, also samba 3.0.8. I tried to change my "sambapassword" on a windows client, however i was getting errors saying i didnt have permission even tho sambaPwdCanChange was set to 1, so i looked in the log.smb and found the error was a
2016 Nov 25
2
Translation of custom attribute (defined for variables) from clang to llvm
Hi All, I need your guidance about a custom attribute. I have defined one for variables. It is accepted in the source code (without any warnings from clang), for example in following snippet. #define NEWATTR __attribute__((moviAttr(1))) int main() { NEWATTR volatile unsigned int a = 5; volatile unsigned int *p; p = &a; return (a+*p); } and actually when I Dump the declaration, after
2013 Jan 09
2
[LLVMdev] attributes
I need to add two function attributes to clang that I can subsequently process in llvm. void __attribute__((mips16)) foo16 (); void __attribute__((nomips16)) foo32 (); int main() { foo16(); foo32(); } Does anyone know offhand where this gets added to clang and where the hook for processing in llc is? I think that this code has changed recently. These options mimick those of gcc.
2006 May 29
0
attribute selectors: IE6 compatibility and enhancements
Hi All, I''ve posted a patch a couple days ago to bring IE6 compatibility and enhancements to Brian Donovan''s attribute selectors. It''s here: http://dev.rubyonrails.org/ticket/5170 What it does: * adds full IE6 compatibility to attribute selectors. * adds ^=, $= and *= operators * replaces != (not in spec) by :not(X) which is applicable to ALL operators, so you can
2016 Nov 28
2
Translation of custom attribute (defined for variables) from clang to llvm
Hi John, I have looked into the EmitAutoVarAlloca() in CGDecl.cpp. However, I could not figure out how to employ my custom attribute for code generation. For example, my custom attribute is visible in CGDecl.cpp but how can I generate based on my custom attribute if (D.hasAttr<myCustomAttri>()) { //What to do here? } What I wan in IR is something like below. Without Custom Attribute: