Displaying 13 results from an estimated 13 matches for "bhamidipaty".
2006 Nov 12
4
[LLVMdev] need help understanding getelementptr assembler instruction
I am trying to understand the hello word assember example. This is
my version:
%str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
declare int %printf(sbyte*, ...)
implementation ; Functions:
int %main() {
%str2 = getelementptr [13 x sbyte]* %str1, long 0, long 0
call int(sbyte*, ...) *%printf(sbyte* %str2)
ret int 0
}
Why is getelementptr being given two "long
2006 Dec 09
2
[LLVMdev] jit with external functions
On 12/8/06, Chris Lattner <sabre at nondot.org> wrote:
> On Fri, 8 Dec 2006, Ram Bhamidipaty wrote:
> > Can I place references to external functions in the assembler files? For example
> > I if my application has a function called fred() I would like to place
> > calls to fred
> > in the assembler text file. Can I do that and have the external function call
> >...
2006 Nov 13
2
[LLVMdev] need help understanding getelementptr assembler instruction
...rstand the GetElementPtr FAQ available here:
>
> http://llvm.org/docs/GetElementPtr.html
>
> That will help you understand how it works. We wrote that document
> specifically because this question comes up all the time.
>
> Reid.
>
> On Sun, 2006-11-12 at 11:13 -0800, Ram Bhamidipaty wrote:
>> I am trying to understand the hello word assember example. This is
>> my version:
>>
>> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
>>
>> declare int %printf(sbyte*, ...)
>>
>> implementation ; Functions:
>>...
2006 Nov 12
0
[LLVMdev] need help understanding getelementptr assembler instruction
Ram,
Please read and understand the GetElementPtr FAQ available here:
http://llvm.org/docs/GetElementPtr.html
That will help you understand how it works. We wrote that document
specifically because this question comes up all the time.
Reid.
On Sun, 2006-11-12 at 11:13 -0800, Ram Bhamidipaty wrote:
> I am trying to understand the hello word assember example. This is
> my version:
>
> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
>
> declare int %printf(sbyte*, ...)
>
> implementation ; Functions:
>
> int %main() {
> %str2...
2006 Dec 03
0
[LLVMdev] problem building gcc4 front end on fedora core 5
...== 1
- && (DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) != 0))
+ if (s->refcount
+ == ((DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) ? 1 : 2))
{
void ** slot;
slot = htab_find_slot_with_hash (debug_str_hash, s->str,
Cheers,
-- Jim
On Dec 3, 2006, at 9:20 AM, Ram Bhamidipaty wrote:
> ../../llvm-gcc4-1.9.source/gcc/libgcc2.c -o libgcc/./_mulvdi3.o
> ../../llvm-gcc4-1.9.source/gcc/libgcc2.c:403: internal compiler error:
> in prune_unused_types_update_strings, at dwarf2out.c:14372
> Please submit a full bug report,
-------------- next part --------------
An...
2006 Dec 09
2
[LLVMdev] jit with external functions
I have an application that is generating llvm assembler text files, these
are then loaded with ParseAssemblyFile. I am also using
ExecutionEngine::runFunction
to call functions in the loaded/created modules.
Can I place references to external functions in the assembler files? For example
I if my application has a function called fred() I would like to place
calls to fred
in the assembler text
2006 Dec 09
0
[LLVMdev] jit with external functions
On Fri, 8 Dec 2006, Ram Bhamidipaty wrote:
> Can I place references to external functions in the assembler files? For example
> I if my application has a function called fred() I would like to place
> calls to fred
> in the assembler text file. Can I do that and have the external function call
> resolve to the address...
2006 Dec 09
0
[LLVMdev] jit with external functions
On Sat, 9 Dec 2006, Ram Bhamidipaty wrote:
> Will it also handle symbols that are in shared libraries loaded into
> the process?
I'm not sure, but I thought so.
> I am creating a python module that has the llvm functionality. This
> module is loaded
> into the process as a shared library. I want to generate llvm...
2006 Nov 13
2
[LLVMdev] need help understanding getelementptr assembler instruction
...lvm.org/docs/GetElementPtr.html
> >>
> >> That will help you understand how it works. We wrote that document
> >> specifically because this question comes up all the time.
> >>
> >> Reid.
> >>
> >> On Sun, 2006-11-12 at 11:13 -0800, Ram Bhamidipaty wrote:
> >>> I am trying to understand the hello word assember example. This is
> >>> my version:
> >>>
> >>> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
> >>>
> >>> declare int %printf(sbyte*, ...)
&g...
2006 Dec 03
3
[LLVMdev] problem building gcc4 front end on fedora core 5
I'm getting a build error when trying to build gcc4 from sources. This is
for the recent 1.9 release.
How I built llvm-1.9:
-----------------------------
tar zxf llvm-1.9.tar.gz
cd llvm-1.9/
./configure --prefix=/custom/llvm-1.9
make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION='-O2' tools-only
make install
How I built gcc4:
-----------------------------
export
2006 Nov 13
0
[LLVMdev] need help understanding getelementptr assembler instruction
...f arrays of arrays in the type
table. So you are pointing at the zeroth, and in this case only, array
of sbyte[13]. The next 0 actually indexes into the array of sbyte, so
you are pointing at index 0, or pointing at the 'H' in "Hello World".
Hope this helps,
-- Robert.
Ram Bhamidipaty wrote:
> I am trying to understand the hello word assember example. This is
> my version:
>
> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
>
> declare int %printf(sbyte*, ...)
>
> implementation ; Functions:
>
> int %main() {
> %str2 = g...
2006 Nov 13
0
[LLVMdev] need help understanding getelementptr assembler instruction
...le here:
>>
>> http://llvm.org/docs/GetElementPtr.html
>>
>> That will help you understand how it works. We wrote that document
>> specifically because this question comes up all the time.
>>
>> Reid.
>>
>> On Sun, 2006-11-12 at 11:13 -0800, Ram Bhamidipaty wrote:
>>> I am trying to understand the hello word assember example. This is
>>> my version:
>>>
>>> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
>>>
>>> declare int %printf(sbyte*, ...)
>>>
>>> implem...
2006 Nov 13
0
[LLVMdev] need help understanding getelementptr assembler instruction
...ntPtr.html
>>>>
>>>> That will help you understand how it works. We wrote that document
>>>> specifically because this question comes up all the time.
>>>>
>>>> Reid.
>>>>
>>>> On Sun, 2006-11-12 at 11:13 -0800, Ram Bhamidipaty wrote:
>>>>> I am trying to understand the hello word assember example. This is
>>>>> my version:
>>>>>
>>>>> %str1 = internal constant [13 x sbyte] c"Hello World\0a\00"
>>>>>
>>>>> declare int %prin...