Displaying 20 results from an estimated 714 matches for "getnames".
Did you mean:
getname
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
2009 Aug 04
3
[LLVMdev] Outputting hex in DOUT's
On Tuesday 04 August 2009 18:24, Chris Lattner wrote:
> The big issue is things like this:
>
> DOUT << foo.getName() << "\n";
>
> When -debug is disable and even when assertions are turned off,
> foo.getName() is still called. When you use:
Yep, that's a problem.
> DEBUG(errs() << foo.getName() << "\n");
>
> When
2011 Sep 22
2
[LLVMdev] How to const char* Value for function argument
Hi,
I'm trying to replace function call with call to
wrapper(function_name, num_args, ...), where varargs hold args of
original call.
Function* launch = Function::Create(
TypeBuilder<int(const char*, int, ...), false>::get(context),
GlobalValue::ExternalLinkage, "kernelgen_launch_", m2);
{
CallInst* call = dyn_cast<CallInst>(cast<Value>(I));
if
2013 Jul 22
0
[LLVMdev] Analysis of polly-detect overhead in oggenc
At 2013-07-22 01:40:31,"Tobias Grosser" <tobias at grosser.es> wrote:
>On 07/21/2013 09:49 AM, Star Tan wrote:
>> Hi all,
>>
>>
>> I have attached a patch file to reduce the polly-detect overhead.
>
>Great.
>
>> My idea is to avoid calling TypeFinder in Non-DEBUG mode, so
>> TypeFinder is only called in DEBUG mode with the DEBUG
2013 Jul 21
2
[LLVMdev] Analysis of polly-detect overhead in oggenc
On 07/21/2013 09:49 AM, Star Tan wrote:
> Hi all,
>
>
> I have attached a patch file to reduce the polly-detect overhead.
Great.
> My idea is to avoid calling TypeFinder in Non-DEBUG mode, so
> TypeFinder is only called in DEBUG mode with the DEBUG macro. This
> patch file did this work with following modifications:
>
>
> First, it keeps most of string information
2009 Sep 04
2
[LLVMdev] Error in Hello World Pass
Hi,
I am trying to compile the Hello World pass (described at
http://llvm.org/docs/WritingAnLLVMPass.html#basiccode) in an LLVM Project
and I get an error, 'no match for ‘operator<<’ at line
llvm::cerr << "*Hello: *" << F.getName() << "\n";
But when I looked up in the LLVM API Documentation, I think "<<"
operator is not overloaded
2013 Oct 19
2
[LLVMdev] Name of Virtual Registers
How can I get the name of the virtual Registers present on an instruction.
eg. %add18 = add nsw i32 %mul17, %37
in this case I want to extract the name of the virutal registers as "add18",
"mul17","37".
This can easily be done in the case of store Instruction
eg. store i32 %add20, i32* %t, align 4
in this case functions like
2012 Jul 05
0
[LLVMdev] Accessing Return Variable Names
Hi John,
%4 is not returned, because it's a temp register value and not a named
variable.
But you can implement something like the code below to get this value.
(Not the most elegant, but more or less working solution).
static std::string getName(Instruction* i)
{
if(i->getOpcode() == Instruction::Store)
{
return
2005 Apr 27
2
Getting the name of an object as character
This could be really trivial, but I cannot find the right function to get
the name of an object as a character.
Assume we have a function like:
getName <- function(obj)
Now if we call the function like:
getName(blabla)
and 'blabla' is not a defined object, I want getName to return "blabla". In
other word, if
paste("blabla")
returns
"blabla"
I
2006 May 19
11
Prototype / Scriptaculous & Dojo
Are these libs compatible
? At the very least I''d like to be able to use Prototype & Dojo ?
Thoughts welcome..
Matt
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2010 Jul 16
2
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi,
I'm trying to use CallGraphSCCPass, but I keep getting a bus error. I
can reproduce the problem quite easily using the lib/Transforms/Hello
example. I simply mix in these changes:
#include "llvm/CallGraphSCCPass.h"
...
struct Hello : public CallGraphSCCPass {
static char ID; // Pass identification, replacement for typeid
Hello() : CallGraphSCCPass(&ID) {}
2009 Jul 23
0
[LLVMdev] [POTENTIAL API CHANGE] Improving llvm::Value getName()/setName()
Following up on my introduction of the StringRef type, I wanted to
clean up the API for getting and setting the name of an llvm::Value.
There are a number of problems with the current API:
1. There are too many ...Name methods.
2. getName() returns an std::string, which is expensive.
3. getName() is frequently used to derive new names, which are passed
to setName(). Currently this uses
2010 Jul 19
0
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi Trevor,
> struct Hello : public CallGraphSCCPass {
> static char ID; // Pass identification, replacement for typeid
> Hello() : CallGraphSCCPass(&ID) {}
> virtual bool runOnSCC(std::vector<CallGraphNode *> &SCC) {
> CallGraphNode *node = SCC.front();
> Function *function = node->getFunction();
>
2011 Sep 22
0
[LLVMdev] How to const char* Value for function argument
Hi Dimitry,
This makes sense if you think about it from the perspective that the string you want passing must be passed at runtime, and so can't use a const char * from compile time.
You need to make the string visible in the compiled image, and use that as the argument. A string is an array of 8-bit integers, so you need to create a ConstantArray.
Value *v = ConstantArray::get(Context,
2010 Mar 26
4
[LLVMdev] Operand, instruction
Can anyone tell how to get the result name or instruction name of all
instruction? For example if the instruction is "x=add y,z", here i need "x".
Using getName(), i am getting some instructions result name, but llvm
produces some instruction like "%0=add i32 tmp, 1", here getName() shows
empty string as result name.
So please help.
John Criswell wrote:
>
>
2013 Jul 22
2
[LLVMdev] Analysis of polly-detect overhead in oggenc
On 07/21/2013 07:33 PM, Star Tan wrote:
> At 2013-07-22 01:40:31,"Tobias Grosser" <tobias at grosser.es> wrote:
>
>> On 07/21/2013 09:49 AM, Star Tan wrote:
>>> Hi all,
>>>
>>>
>>> I have attached a patch file to reduce the polly-detect overhead.
>>
>> Great.
>>
>>> My idea is to avoid calling TypeFinder in
2009 Aug 04
2
[LLVMdev] Outputting hex in DOUT's
On Tuesday 04 August 2009 17:52, Chris Lattner wrote:
> I'd prefer for it to be eliminated, but it is currently used widely.
> If your patches don't make it substantially worse, I won't have a
> problem with them. Bonus points for removing DOUTs though :)
Ok, this is good to know. With some of these patches I will have
opportunities to remove DOUTS.
What's the
2009 Aug 04
0
[LLVMdev] Outputting hex in DOUT's
On Aug 4, 2009, at 4:03 PM, David Greene wrote:
> On Tuesday 04 August 2009 17:52, Chris Lattner wrote:
>
>> I'd prefer for it to be eliminated, but it is currently used widely.
>> If your patches don't make it substantially worse, I won't have a
>> problem with them. Bonus points for removing DOUTs though :)
>
> Ok, this is good to know. With some of
2011 Apr 25
1
[LLVMdev] Inefficiency in Intrinsic::getName in Function.cpp?
I was looking over Function.cpp and saw that for every call to
Intrinsic::getName, the entire intrinsic table (about a thousand
references to strings) gets copied over for the initialization of
Table. Is there a reason for why this is done, or would it be better
for Table to be static, so that this initialization only happens on
the first call? Perhaps this is optimized away for the release build,
2019 Aug 23
2
LLVM-8.0 | Requesting Help : Function->getName() returns empty string
Hello All,
I am creating a Module and getting Function pointer as below in some
function.
Function *fn = module->getFunction(fnName);
printf("func Name: %s.\n", fn->getName().str().c_str());
.
.
return (intptr_t) fn;
This prints : "func Name: main." I convert the ptr to int and return it.
Later I am receiving this as a Func Handler in other function