search for: soham

Displaying 20 results from an estimated 43 matches for "soham".

2018 Jun 26
2
How to force an unused function declaration in clang
It does, when the function has a body. When it doesn't, it ignores <https://godbolt.org/g/2BCvht>. The body might be provided later on in the toolchain via linking a library. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University On Tue, Jun 26, 2018 at 10:25 AM Hans Wennborg <hans at chromium.org> wrote: > It works for me: > > https://godbolt.org/g/3QzqAH > > Can you share an example? > > On Tue, Jun 26, 2018 at 5:21 PM, Soham...
2018 Jun 26
2
How to force an unused function declaration in clang
For the same reason GCC allowed the attribute. Even if I want to use/inline a function later on in the pipeline. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University On Tue, Jun 26, 2018 at 8:30 AM mayuyu.io <admin at mayuyu.io> wrote: > Out of curiosity, how does an unused declaration affect the emitted object > file > > Zhang > > > 在 2018年6月26日,08:48,Soham Sinha...
2016 Sep 14
2
undef * 0
...t, allowing the ‘|or|‘ to be folded to -1." As a result, LHS = (undef & undef) | (undef & undef) = c_1 | c_2 where c_1 and c_2 are constants and as a result, And finally, LHS = c where c is a constant; not undef. Please correct me if I am missing something. Best Regards, soham On 9/13/2016 7:27 PM, Sanjoy Das wrote: > Hi Soham, > > Soham Chakraborty wrote: > > As a result, the transformation ' ((a& (~b)) |((~a)& b)) ~> xor > a b ' > > is unsound. LLVM presently performs this transformation. > > This transform looks...
2018 May 17
1
How to inline function from other file in IR
Hi Soham, “extern inline” keyword will help in this case, with this keyword compiler is forced to keeps the definition of the function and make it available for the external usage. Also it retains the “inlinehint” attribute on the function, with that lto inliner may make it inline. Best, Ashutosh From: l...
2018 May 15
3
How to inline function from other file in IR
...oo function calls to be *inlined*. However, I get compilation error because *foo *is not found (a.ll doesn't have foo) If I remove the inline attribute of foo in a.c, I get the correctly compilation, with calls to foo inserted in bar from b.c How do I achieve this kind of inline-ing? Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180515/3ac30e95/attachment.html>
2012 Dec 03
1
[LLVMdev] X86 rsqrt instruction generated
Hi, Please find attached the modified patch and description. We have modified and retested the patch taking into consideration the comments and inputs provided earlier. Thanks & Regards, soham -----Original Message----- From: Eli Friedman [mailto:eli.friedman at gmail.com] Sent: Thursday, November 15, 2012 12:59 PM To: Chakraborty, Soham Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] X86 rsqrt instruction generated On Wed, Nov 14, 2012 at 10:43 PM, Chakraborty, Soham <Soham.Chak...
2018 Jun 26
2
How to force an unused function declaration in clang
...hanged in EmitGlobal function to detect if the function has "used" attribute and then if it has then use "GetOrCreateLLVMFunction" this to create the function declaration. However, this hack fails in some other cases. Therefore I am looking for a proper way to do this. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180625/b98923f6/attachment.html>
2016 Sep 02
4
undef * 0
What is the value of undef * 0 in LLVM? According to its definition in the LLVM IR reference; "The string ‘undef‘ can be used anywhere a constant is expected..." Am I correct to say that undef * 0 = 0 following this definition? Best Regards, soham
2012 Nov 15
0
[LLVMdev] X86 rsqrt instruction generated
On Wed, Nov 14, 2012 at 10:43 PM, Chakraborty, Soham <Soham.Chakraborty at amd.com> wrote: > Hi, > > > > We have implemented the rsqrt instruction generation for X86 target > architecture. We have introduced a flag -fp-rsqrt flag which controls the > generatation of X86 rsqrt instruction generation. > > We have observ...
2018 May 17
0
How to inline function from other file in IR
Hi Soham, Are you intending to use the inline keyword in order to control the inlining optimization? The inline keyword is not doing this, it is changing the linkage type of the symbol and instruct the compiler to discard it if there is no call left, and also will instruct the linker to deduplicate. For i...
2018 Jun 25
2
How to include a opt pass in clang driver
...erBuilder &, llvm::legacy::PassManagerBase &PM) { PM.add(new MyPass()); } static RegisterStandardPasses RegisterMyPass(PassManagerBuilder::EP_OptimizerLast, registerMyPass); It still couldn't find my pass. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University On Mon, Jun 25, 2018 at 3:58 PM Friedman, Eli <efriedma at codeaurora.org> wrote: > On 6/25/2018 1:38 PM, Soham Sinha via llvm-dev wrote: > > Hello, > > > > I have written a pass for the IR and I can r...
2012 Nov 15
2
[LLVMdev] X86 rsqrt instruction generated
...th this mail. Also we want to commit these changes back to llvm codebase. Please review and suggest. Future enhance plans are as follows. TODO: 1. Enable vector rsqrt generation. 2. Generate different variations of FDA i.e. FMSUB, FNMSUB,FNMADD instruction generations as required. Best Regards, soham "The search for truth is more precious than its possession." -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121115/3f05bfde/attachment.html> -------------- next part -------------- A non-text...
2016 Sep 13
2
undef * 0
...st be specialized to some constant (e.g. 0). But, if the expression is transformed to $a xor b$ then it may return 'undef'. As a result, the transformation ' ((a & (~b)) |((~a) & b)) ~> xor a b ' is unsound. LLVM presently performs this transformation. Best Regards, soham source ---------- int foo(){ int a,b; // unintialized and 'undef' return ((a & (~b)) |((~a) & b)); } unoptimized IR // clang++ -emit-llvm udf.cpp -S ---------------------- define i32 @_Z3foov() #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %0 = load i32,...
2018 May 07
0
How to add assembly instructions in CodeGen
...ner runs extremely late in the pass pipeline so it might be a good place to look for some inspiration. Of course, because this is *extremely late* it might not do *exactly* what you need. (e.g, this is post-register allocation, post frame-lowering, etc.) - Jessica > On May 4, 2018, at 6:32 PM, Soham Sinha via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello, > > I want to add assembly instructions at certain points in a function. This is X86 specific. So I am working in the lib/Target/X86 folder. I create a `MachineFunctionPass` in that folder. I register it in the X8...
2018 May 10
2
Assembly file compilation flow
...ile. The driver --verbose option is not giving me much information as well. I want to know the flow. Like, What CodeGen phases does this file pass through? Is it converted to MachineFunction ever? Where does it hook into the backend infrastructure? Any documentation could also be helpful. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180510/e125c7cf/attachment.html>
2012 Nov 05
1
[LLVMdev] adding architecture specific flag
Hi, Can anybody please suggest where to add architecture specific code generation flags(e.g. X86) in llvm? Thanks in advance. Best Regards, soham
2010 May 15
2
p value
How to compute the p-value of a statistic generally? -- View this message in context: http://r.789695.n4.nabble.com/p-value-tp2217867p2217867.html Sent from the R help mailing list archive at Nabble.com.
2018 May 05
4
How to add assembly instructions in CodeGen
...m MachineFunctionPass? I tried addPreRegAlloc, but it failed due to insufficient register allocation error or something on that line. Can anybody please help me write a MachineFunctionPass where I can insert assembly instruction without breaking the alignment? I am doing this for X86_64. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180504/7d720e63/attachment.html>
2018 Jun 25
2
How to include a opt pass in clang driver
...clang -load -Xclang lib/LLVMMyPass.so -mypass -myarguments However, the pass is not being run as I cannot see output from my pass. What is the standard way to do it? I have also tried approach described here: https://www.cs.cornell.edu/~asampson/blog/clangpass.html . It didn't work. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180625/ff50e226/attachment.html>
2018 May 10
0
Assembly file compilation flow
...not go through any CodeGen phases. It operates entirely in the MC layer. No MachineFunctions will be created. It just runs it through the MCAsmParser. Most of the setup for this is in clang's tools/driver/cc1as_main.cpp in the function ExecuteAssembler ~Craig On Thu, May 10, 2018 at 1:32 PM Soham Sinha via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hello, > > LLVM MC blog post > <http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html> explains > fairly well how the backend MC project is working. However, it's not clear > to me how LLVM converts an...