Displaying 6 results from an estimated 6 matches for "back0145".
2012 Aug 20
3
[LLVMdev] How to Identify if an Argument is a pointer?
Hello,
I was wondering how you can identify whether or not an Argument is a
pointer. The "isDereferenceablePointer" function for Values doesn't
seem to be what I want (I don't care whether or not the pointer points
to allocated memory or is suitably aligned). I want to be able to
discern between:
i32* %pArray
and
i32 %pArray
Thanks in advance.
- John
2012 Aug 20
0
[LLVMdev] How to Identify if an Argument is a pointer?
You can use isPointerTy() in Type class.
George
On Mon, Aug 20, 2012 at 12:39 PM, John Backes <back0145 at umn.edu> wrote:
> Hello,
>
> I was wondering how you can identify whether or not an Argument is a
> pointer. The "isDereferenceablePointer" function for Values doesn't
> seem to be what I want (I don't care whether or not the pointer points
> to allocated...
2012 Jul 05
4
[LLVMdev] Accessing Return Variable Names
Hello,
I'm new to llvm development and I have a question which I think should
be straight forward, but I am having trouble figuring it out. I want to
be able to access the return variable name for an instruction. For some
instructions I can get this value through the "getName" method. For
example, with the instruction:
> %arg11 = bitcast i32* %arg1 to i8*, !dbg !42, !id
2012 Jul 05
0
[LLVMdev] Accessing Return Variable Names
...r
of Value.h). Also the Function class has an iterator of BasicBlocks,
and each BasicBlock has an iterator of Instructions. For example, you
can iterate through all instructions in the scope of your interest and
find those, whose type is ReturnInst.
Hope it helps,
- Dima.
2012/7/5 John Backes <back0145 at umn.edu>:
> Hello,
>
> I'm new to llvm development and I have a question which I think should
> be straight forward, but I am having trouble figuring it out. I want to
> be able to access the return variable name for an instruction. For some
> instructions I can get th...
2012 Jul 05
0
[LLVMdev] Accessing Return Variable Names
...a = name.find(",", var_start+1); // or comma
return var_comma<var_end?
name.substr(var_start,var_comma-var_start) :
name.substr(var_start, var_end-var_start);
}
Have fun
Igor
On Thu, Jul 5, 2012 at 11:15 PM, John Backes <back0145 at umn.edu> wrote:
> Hello,
>
> I'm new to llvm development and I have a question which I think should
> be straight forward, but I am having trouble figuring it out. I want to
> be able to access the return variable name for an instruction. For some
> instructions I can...
2012 Jul 05
1
[LLVMdev] Accessing Return Variable Names
...has an iterator of BasicBlocks,
> and each BasicBlock has an iterator of Instructions. For example, you
> can iterate through all instructions in the scope of your interest and
> find those, whose type is ReturnInst.
>
> Hope it helps,
> - Dima.
>
> 2012/7/5 John Backes <back0145 at umn.edu>:
>> Hello,
>>
>> I'm new to llvm development and I have a question which I think should
>> be straight forward, but I am having trouble figuring it out. I want to
>> be able to access the return variable name for an instruction. For some
>> i...