Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] PIC16 port is now functional."
2009 Aug 13
2
[LLVMdev] XCore & PIC16 AsmPrinters
On Aug 12, 2009, at 9:48 PM, Sanjiv.Gupta at microchip.com wrote:
> Chris,
> I will try to get it done before 2.6. (8/21).
>
Thanks Sanjiv! One other nice cleanup (but which is not time critical
at all) would be to merge the contents of "PIC16Section" into the new
"MCSectionPIC16" class. Unlike the previous design, you're now
allowed to store arbitrary
2009 Jul 01
2
[LLVMdev] llvmc for PIC16
The driver behaves differently when I run it by specifying absolute path
than when I run it with relative path.
See example
Relative:
i00202 at ubuntu:/tmp$ mcc16 --save-temps -dry-run hello.c./clang-cc -I
./include -triple=pic16- -emit-llvm-bc hello.c -o hello.bc-pqDR1Y
llvm-ld -link-as-library hello.bc-pqDR1Y -o tmp.bc-M1Rwip
llc -march=pic16 -f tmp.bc-M1Rwip -o tmp.s-DcVczP
gpasm -I ./inc
2009 Jun 28
1
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/23 <Sanjiv.Gupta at microchip.com>
>
>>> BTW, Chris's Makefile changes broke llvmc yesterday (r75379). I'm
>>> working on a fix.
>>>
>> Hi Mikhail,
>> Did you get a chance to fix this. I still get errors while building examples.
>>
>>
>
> This issue
2009 Jun 30
2
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/29 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
>
>> I want to retrieve the value of argv[0] (which was passed to main function
>> of the driver) in PrependCustomizedPath.
>>
>
> I've added a way to access argv[0] in hooks:
> http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/50789
>
2009 Aug 13
0
[LLVMdev] XCore & PIC16 AsmPrinters
Chris,
I will try to get it done before 2.6. (8/21).
- Sanjiv
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu on behalf of Chris Lattner
Sent: Wed 8/12/2009 10:08 PM
To: LLVM Developers Mailing List
Subject: [LLVMdev] XCore & PIC16 AsmPrinters
Hi XCore and PIC16 maintainers,
I'd appreciate it if you guys could move your AsmPrinter
implementation to be in a
2009 Jun 15
3
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
>
> Hi Sanjiv,
>
> Sanjiv Gupta <sanjiv.gupta <at> microchip.com> writes:
>
> > The salient features that we want to have in the driver are:
> > [...]
>
> As promised, I've implemented a basic compiler driver for the
> PIC16 toolchain. It's under tools/llvmc/examples/mcc16.
>
Hi Mikhail,
How do you build mcc16
2009 Jul 01
0
[LLVMdev] llvmc for PIC16
I found out the problem. Looks like I can not rely on argv[0] to contain
the full path of the executable always.
Can I rely on:
static Path GetMainExecutable(const char *argv0, void *MainAddr);
is it Cross-platform?
What to pass for second parameter here. C++ forbids taking address of
"main", and the "Main" of CompilerDriver is in a shared object here.
- Sanjiv
Sanjiv
2009 Jun 03
2
[LLVMdev] llvmc for PIC16
PIC16 now has clang and llc based system to generate native assembly. We
then use our native assembler (gpasm) and the native linker (mplink) to
generate the final executable. How can I integrate these things with
the driver llvmc to have gcc like user experience? Note that we also
want to run llvm-ld in order to perform the LTOs in case of multiple files.
- Sanjiv
2009 Jun 23
3
[LLVMdev] llvmc for PIC16
> BTW, Chris's Makefile changes broke llvmc yesterday (r75379). I'm
> working on a fix.
Hi Mikhail,
Did you get a chance to fix this. I still get errors while building examples.
i00202 at ubuntu:~/projects/llvm/tools/llvmc/example/mcc16$ make
make[1]: Entering directory `/home/i00202/projects/llvm/tools/llvmc/example/mcc16/plugins'
make[2]: Entering directory
2009 Jun 29
4
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/18 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
>
>> Hi Mikhail,
>> Thanks for your wonderful help so far. I have few more questions to ask:
>>
>> How do I modify the driver to pick tools from where the driver itself
>> resides, rather than from the PATH?
>> Do I need to write some C++ code
2009 Jun 07
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
Sanjiv Gupta <sanjiv.gupta <at> microchip.com> writes:
> The salient features that we want to have in the driver are:
> [...]
As promised, I've implemented a basic compiler driver for the
PIC16 toolchain. It's under tools/llvmc/examples/mcc16.
Some examples illustrating the features you requested:
> 2. If the user has specified to generate the final
2009 Aug 12
4
[LLVMdev] XCore & PIC16 AsmPrinters
Hi XCore and PIC16 maintainers,
I'd appreciate it if you guys could move your AsmPrinter
implementation to be in a subdirectory like the rest of the other
targets (e.g. make it live in lib/Target/PIC16/AsmPrinter). Anton is
planning to move MSP430 to use the same approach. Having all the
targets use the same design simplifies the build system and keeps the
target architecture more
2009 Jun 30
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
2009/6/29 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
> I want to retrieve the value of argv[0] (which was passed to main function
> of the driver) in PrependCustomizedPath.
I've added a way to access argv[0] in hooks:
http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/50789
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against
2009 Jul 02
2
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
On Wed, Jul 1, 2009 at 7:02 PM, Sanjiv Gupta<sanjiv.gupta at microchip.com> wrote:
> I found out the problem. Looks like I can not rely on argv[0] to contain the
> full path of the executable always.
Yeah, that's what I was thinking.
> Can I rely on:
> static Path GetMainExecutable(const char *argv0, void *MainAddr);
Clang relies on it. According to
2009 Jun 23
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
2009/6/23 <Sanjiv.Gupta at microchip.com>
>
> > BTW, Chris's Makefile changes broke llvmc yesterday (r75379). I'm
> > working on a fix.
>
> Hi Mikhail,
> Did you get a chance to fix this. I still get errors while building examples.
>
This issue should be fixed now (r74001+).
--
() ascii ribbon campaign - against html e-mail
/\
2009 Jun 15
3
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/15 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
>
>> Hi Mikhail,
>> How do you build mcc16 executable?
>>
>
> This should work:
>
> $ cd $LLVM_DIR/tools/llvmc/examples/mcc16
> $ make
>
>
I configure llvm into a separate directory from source.
When I do the steps you mentioned in
2009 Aug 13
0
[LLVMdev] XCore & PIC16 AsmPrinters
Chris Lattner wrote:
>
> On Aug 12, 2009, at 9:48 PM, Sanjiv.Gupta at microchip.com wrote:
>
>> Chris,
>> I will try to get it done before 2.6. (8/21).
>>
>
> Thanks Sanjiv! One other nice cleanup (but which is not time critical
> at all) would be to merge the contents of "PIC16Section" into the new
> "MCSectionPIC16" class. Unlike the
2009 Jun 18
3
[LLVMdev] llvmc for PIC16
Hi Mikhail,
Thanks for your wonderful help so far. I have few more questions to ask:
How do I modify the driver to pick tools from where the driver itself
resides, rather than from the PATH?
And how to make sure that we have same behavior on Windows as far as
paths (/ Vs \) and picking up tools from the driver directory is concerned?
Do I need to write some C++ code to customize such
2008 Oct 15
3
[LLVMdev] INSERT_SUBREG node.
On Wed, 2008-10-15 at 10:08 -0700, Evan Cheng wrote:
> On Oct 15, 2008, at 5:29 AM, sanjiv gupta wrote:
>
> > On Tue, 2008-10-14 at 10:19 -0700, Evan Cheng wrote:
> >> You need to specify sub-register == super-register, idx relationship.
> >> See X86RegisterInfo.td:
> >>
> >> def x86_subreg_8bit : PatLeaf<(i32 1)>;
> >> def
2008 Oct 13
2
[LLVMdev] INSERT_SUBREG node.
On Thu, 2008-10-02 at 11:19 -0700, Evan Cheng wrote:
>
> On Oct 2, 2008, at 11:02 AM, Sanjiv.Gupta at microchip.com wrote:
>
> > What’s the value produced by an INSERT_SUBREG node? Is it a chain?
>
>
> No, insert_subreg returns a value:
>
>
> v1 = insert_subreg v2, v3, idx
>
>
> v1 and v2 will have the same type, e.g. i16, and v3 must have a
>