search for: mcos

Displaying 6 results from an estimated 6 matches for "mcos".

Did you mean: cmos
2010 Sep 21
1
[LLVMdev] Possible missed optimization on function calling?
Hello, I noticed that the following code could be improved a little bit further. If the optimization is too tricky for the compiler or something and it's done this way by design forgive me, but in any case i just wanted to point it out. Consider the following C code: extern int mcos(int a); extern int msin(int a); extern int mdiv(int a, int b); int foo(int a, int b) { int a4 = mdiv(mcos(a), msin(b)); return a4; } I noticed this while testing it for the backend i'm currently developing, but it produces exactly the same code for other targets: march = msp430:...
2010 Dec 02
0
[LLVMdev] Register Pairing
Hi Borja, > Without doing what i mentioned and letting LLVM expand all operations wider > than 8 bits as you asked, the code produced is excellent supposing that many > of the moves there should be 16 bit moves reducing code size and right > register allocation, also something important for me is that the code is > better than gcc's. When i say right reg allocation it doesnt
2010 Dec 05
1
[LLVMdev] Register Pairing
...ean that only your allocator is able to handle or support this type of constraint? As a follow up to my previous email, the following code is a real example of what i was explaining, Lang this example is exactly why i need the constraints and how to combine instructions. typedef short t; extern t mcos(t a); extern t mdiv(t a, t b); t foo(t a, t b) { short p1 = mcos(b); short p2 = mcos(a); return mdiv(p1&p2, p1^p2); } This C code produces: ; a<- r25:r24 b<--r23:r22 mov r18, r24 mov r19, r25 <-- can be combined into a movw r19:r18, r25:r24 mov r25,...
2010 Dec 01
2
[LLVMdev] Register Pairing
Jeff thanks for those suggestions, that's exactly what i would like to do, however i dont know how to do it with my current knowledge :\ As far as i understand patterns only take one instruction as an input (while the pattern you wrote before takes two) and also, i dont know how to handle register copying (COPY) in the .td file because they're handled in a different way to the rest of
2012 Dec 18
0
[LLVMdev] Setting ELF section alignment at the Target level
Figured it out If I have an MCObjectStreamer object and the MCSection object of the section in question all I need to do is MCObjectStreamer & MCOS = static_cast <MCObjectStreamer &>(OutStreamer); MCSectionData &SD = MCOS.getAssembler().getOrCreateSectionData(*Section); SD.setAlignment(4); Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev...
2020 Apr 22
1
R not running under lldb? (osx)
Thanks Simon. I'll probably just switch to rocker when needing to debug in that case. THK On Tue, Apr 21, 2020 at 6:51 PM Simon Urbanek <simon.urbanek at r-project.org> wrote: > Tim, > > as a security precaution Apple has disabled the ability to debug notarized > applications*. It means any software distributed on macOS Catalina (and > they may have retro-actively