search for: vardecl

Displaying 20 results from an estimated 69 matches for "vardecl".

2017 Jun 01
5
[SemaCXX] Should we fix test failing due to reverse iteration?
...used in loop condition not/ I would like the community's opinion on whether this is something worth fixing? In this case, should the output always be the same irrespective of the iteration order? If yes, then we have 2 alternatives: 1. Change SmallPtrSet to SmallVector for the container (VarDecls) being iterated - this may have a compile time impact (need to measure). 2. Sort the container (VarDecls) before iteration. We can sort based on decl source location and decl name. Not sure if these guaranteed to be unique? Thanks, Mandeep -------------- next part -------------- An HTML att...
2011 Sep 22
4
[LLVMdev] new annotations in IR?
With recent work a plugin can now Annotate a VarDecl at the AST level, how can this be used in a Pass at the IR level? What classes are responsible for their manipulation? I assumed it would be part of Value, or something common like it, but I do not see any mentions of Annotation or Attribute. Thank you -------------- next part -------------- An HT...
2015 Jan 29
0
[RFC PATCH v1 2/2] armv7(float): Optimize encode usecase using NE10 library
...ective. Phil, Below are 2 main things we need to change from NE10 Library side. Can you please make these changes on NE10 side? 1. Remove usage of _t in ne10_fft_cfg_float32_t and ne10_fft_cpx_float32_t -------from comment---- ne10_fft_cfg_float32_t cfg = (ne10_fft_cfg_float32_t)st->priv; + VARDECL(ne10_fft_cpx_float32_t, temp); + VARDECL(ne10_fft_cpx_float32_t, tempin); Just another note on API design... the _t suffix is reserved by POSIX, and should never be used by user code. It's unlikely to cause issues with these long type names, but I have certainly seen it cause issues elsewher...
2010 Jul 06
3
V0.8.0 Problems
Tim, et al, I have run into several problems with V0.8.0. I will address them seperately. 1. My compiler is complaining about the following code in celt.c which seems to define metric first as celt_word32, then as celt_word16. Am I mis-interpreting something? ?? VARDECL(celt_word32, metric); ?? ALLOC(metric, len, celt_word16); Thx MikeH -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20100706/ace6cbe4/attachment-0002.htm
2013 May 26
2
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...estion How could I use WhileStmt class in Stmt.h http://clang.llvm.org/doxygen/Stmt_8h_source.html to implement while loop like while(i==1){} that is required to be inserted For example, Convert x++; y++; to x++; while(i=1){} y++; from the class's constructor: WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL);//I know C --> 1//Var--> i//cond --> =//body --> NOP//WL --> ?? but how to implement these terms in LLVM pass? and what's the SourceLocation? Thanks -- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Comput...
2011 Sep 22
0
[LLVMdev] new annotations in IR?
...that should get you more results :) Cheers, James From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Mark Brown Sent: 22 September 2011 07:46 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] new annotations in IR? With recent work a plugin can now Annotate a VarDecl at the AST level, how can this be used in a Pass at the IR level? What classes are responsible for their manipulation? I assumed it would be part of Value, or something common like it, but I do not see any mentions of Annotation or Attribute. Thank you -- IMPORTANT NOTICE: The contents of this em...
2015 Jan 29
2
[RFC PATCH v1 2/2] armv7(float): Optimize encode usecase using NE10 library
...#endif > + > +void opus_fft_float_neon(const kiss_fft_state *st, > + const kiss_fft_cpx *fin, > + kiss_fft_cpx *fout) Again, these are mis-aligned. > +{ > + ne10_fft_cfg_float32_t cfg = (ne10_fft_cfg_float32_t)st->priv; > + VARDECL(ne10_fft_cpx_float32_t, temp); > + VARDECL(ne10_fft_cpx_float32_t, tempin); Just another note on API design... the _t suffix is reserved by POSIX, and should never be used by user code. It's unlikely to cause issues with these long type names, but I have certainly seen it cause issues...
2011 Nov 02
2
[LLVMdev] annotations preventing optimizations/cleanup?
I created a plugin to add simple Annotations to VarDecls and FieldDecls, and write this modified AST out to a file. I notice that when I use clang to compile this file I get different code then when I use the source directly. In both cases I'm compiling with -O4. Can anyone explain this? Thanks define i32 @somefunc(i32 (i32)* %ptr) nounwind uwtabl...
2011 Sep 22
0
[LLVMdev] new annotations in IR?
On Thu, Sep 22, 2011 at 02:46:05AM -0400, Mark Brown wrote: > With recent work a plugin can now Annotate a VarDecl at the AST level, how > can this be used in a Pass at the IR level? What classes are responsible for > their manipulation? I assumed it would be part of Value, or something common > like it, but I do not see any mentions of Annotation or Attribute. > > Thank you AFAIK, there is no...
2013 May 26
0
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...t; http://clang.llvm.org/doxygen/Stmt_8h_source.html > > to implement |while loop| like |while(i==1){}| that is required to be > inserted > > For example, Convert x++; y++; to x++; while(i=1){} y++; > > from the class's constructor: > > |WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL); > //I know C --> 1 > //Var--> i > //cond --> = > //body --> NOP > //WL --> ??| > > but how to implement these terms in LLVM pass? and what's the > SourceLocation? Do you actually mean LLVM pass?...
2009 Jun 18
1
Resampler saturation, blackfin performance
...() is used only in nb_celp.c, and sb_celp.c re-uses the stack from the nb en/de-coder. But the echo-canceller and preprocessor don't use it. I suppose they also have some scratch buffers. (comments in SpeexEchoState_ structure mdf.c) But you allocate them with speex_alloc instead of using the VARDECL/ALLOC macros. Converting the code to the stack_alloc mechanism could result in better performance with a scratch buffer in SRAM. I think I can do it for mdf.c, but I would need information for preprocess.c. -- St?phane LESAGE ATEIS International
2010 Feb 25
1
Compilation for iPhone (celt 0.7.1)
Hi, In case it is of any help, to compile a static library for the iPhone, I had to add the following 2 lines in plc.c file : #include "arch.h" #include "stack_alloc.h" otherwise "celt_word16..." type are not defined and "VARDECL...." also not. Best Regards St?phane Letz
2011 May 09
1
V11.1 Problem
...================================= ==================== #ifdef FIXED_POINT #ifndef DISABLE_FLOAT_API CELT_STATIC int celt_encode_with_ec_float(CELTEncoder * restrict st, const float * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc) { int j, ret, C, N; VARDECL(celt_int16, in); ALLOC_STACK; SAVE_STACK;<<<<<<<<<<<<<<<ERROR Here "declaration may not appear after executable statement in block" ============================================================================ ==================== ....
2013 May 26
1
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
..._source.html> >> >> to implement |while loop| like |while(i==1){}| that is required to be >> inserted >> >> For example, Convert x++; y++; to x++; while(i=1){} y++; >> >> from the class's constructor: >> >> |WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt >> *body,SourceLocation WL); >> //I know C --> 1 >> //Var--> i >> //cond --> = >> //body --> NOP >> //WL --> ??| >> >> but how to implement these terms in LLVM pass? and what's the >> SourceLo...
2016 Jun 17
5
ARM NEON optimization -- celt_fir()
Hi all, This is Linfeng Zhang from Google. I'll work on ARM NEON optimization in the next few months. I'm submitting 2 patches in the following couple of emails, which have the new created celt_fir_neon(). I revised celt_fir_c() to not pass in argument "mem" in Patch 1. If there are concerns to this change, please let me know. Many thanks to your comments. Linfeng Zhang
2011 Nov 02
0
[LLVMdev] annotations preventing optimizations/cleanup?
> I created a plugin to add simple Annotations to VarDecls and > FieldDecls, and write this modified AST out to a file. I notice that > when I use clang to compile this file I get different code then when I > use the source directly. In both cases I'm compiling with -O4. Can > anyone explain this? This is how clang implements annotations...
2019 Aug 02
2
building a custom plugin
Hi LLVM Devs, I am in the process of building my own plugin for Clang/LLVM in Windows on Visual Studio. I am having difficulty generating the .dll shared file to use at compile time. How have the .dlls corresponding to the example plugins been built? This works: clang -fplugin=C:/Users/User/llvm-project/build/Release/bin/PrintFunctionNames.dll -Xclang -plugin -Xclang print-fns test.c This
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
.../* Free all allocated memory */ vbr_destroy(st->vbr); /*Free state memory... should be last*/ speex_free(st); } int nb_encode(void *state, void *vin, SpeexBits *bits) { EncState *st; int i, sub, roots; int ol_pitch; spx_word16_t ol_pitch_coef; spx_word32_t ol_gain; VARDECL(spx_sig_t *res); VARDECL(spx_sig_t *target); VARDECL(spx_mem_t *mem); char *stack; VARDECL(spx_word16_t *syn_resp); VARDECL(spx_sig_t *real_exc); #ifdef EPIC_48K int pitch_half[2]; int ol_pitch_id=0; #endif spx_word16_t *in = vin; st=(EncState *)state; stack=st->st...
2014 Apr 08
2
[LLVMdev] 3.4.1 Release Plans
On Tue, Apr 08, 2014 at 04:08:13PM +0400, Robert Khasanov wrote: > Hi Reid, > > Would you approve your patches r203146 and r202774 to be backported to > 3.4.1? They fix stability issues in x86 asm. > Hi Robert, I was able to merge r203146, but it used a c++11 feature: std::string::back() which I replaced with std::string::at(std::string::size() - 1). r202774 was not merged,
2016 Nov 25
2
Translation of custom attribute (defined for variables) from clang to llvm
...declaration, after adding the attribute in handleMoviAttr() function in SemaDeclAttr.cpp as shown in following snippet D->addAttr(::new (S.Context)moviAttrAttr(Attr.getRange(), S.Context, Val, Attr.getAttributeSpellingListIndex())); D->dump(); It is dumped by clang with following output VarDecl 0x440c698 <file.c:6:17, line:10:32> col:32 a 'volatile unsigned int' `-moviAttrAttr 0x440c6d0 <line:6:32, col:42> 1 HOWEVER, the attribute doesnt appear in IR of the program. IR is shown below. *** IR Dump Before Pre-ISel Intrinsic Lowering ***; ModuleID = 'file.bc'...