Displaying 20 results from an estimated 900 matches similar to: "[LLVMdev] Attributes & CloneFunctionInto"
2013 May 15
1
[LLVMdev] Attributes & CloneFunctionInto
Hi John,
thanks for the pointer. However, I'd rather avoid rolling a custom
implementation. After all, it's not like I want to do something
drastically different...
I had sorted out the problem for 3.2 as well as a previous version of
3.3 trunk, but the API changed about a hundred times. Now as it
apparently has stabilized, I moved to a the 3.3 release branch just to
find that even
2013 May 15
0
[LLVMdev] Attributes & CloneFunctionInto
On 5/15/13 10:27 AM, Ralf Karrenberg wrote:
> Hi,
>
> I am again struggling to find my way around the Attribute classes.
> What I want to do is clone a function into a declaration where some
> parameters may have a different alignment.
> CloneFunctionInto in debug mode hits an assertion which is marked with
> a FIXME (Attributes.cpp:673).
> I would be totally fine with
2012 May 15
1
[LLVMdev] CloneFunctionInto() overwrites alignment attribute
Hi everybody,
I am trying to clone a function body into an existing declaration.
That declaration has the same number of parameters but they differ in
type and alignment.
Fortunately, it does not care about the type.
Unfortunately, CloneFunctionInto() copies the attributes from the old
function to the new one unconditionally, overwriting the alignment
attribute.
Also, the Attribute interface
2013 May 29
2
[LLVMdev] CloneFunctionInto() Error
Dear All,
I need your help urgently
I have to copy the CFG of each function using CloneFunction or
CloneFunctionInto.
After I made the copy function. Print the basic blocks then get this error :
While deleting: i32 %
Use still stuck around after Def is destroyed: %mul2_ = mul nsw i32 %6, 3
Use still stuck around after Def is destroyed: store i32 3, i32* %x_,
align 4
opt: Value.cpp:75: virtual
2013 May 29
0
[LLVMdev] CloneFunctionInto() Error
Does cloning copies the function with its address or it constructs a new
address to the new function? Is this real copying for the CFG or just
opaque one to do some work?
If it's not real copying, please I need a method that can help me in
copying the function in another with new pointer to another address.
Please I need answer urgent
Thanks
On 29 May 2013 10:14, Rasha Omar <rasha.sala7
2017 Jun 15
4
CloneFunctionInto produces invalid debug info
Hi!
We are currently working on a science project and implemented a
FunctionPass that clones a function (more precisely a constructor of a
struct/class) and adds a parameter.
First, we create a new function with a new function type, which includes
the newly added parameter:
Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() +
"Cloned", F.getParent());
and after
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
This all looks very similar to a bug in the cloning stuff I fixed recently,
so would be indeed good to know if this is still happening on master.
On Thu, Jun 15, 2017 at 2:23 PM, Adrian Prantl via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> If you are doing this work based off LLVM trunk, could you send me your
> patch to reproduce the problem?
>
> -- adrian
>
> On
2017 Jun 15
3
CloneFunctionInto produces invalid debug info
Can you send me a patch with instructions to reproduce? I can take a look.
-- adrian
> On Jun 15, 2017, at 2:23 PM, Sergei Larin <slarin at codeaurora.org> wrote:
>
> Yes, it does for us. My tree is couple days off the tip, and I see it there.
>
> Sergei
>
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Keno Fischer via llvm-dev
> Sent:
2017 Jun 16
2
CloneFunctionInto produces invalid debug info
The if you are cloning into the same LLVM module the CU should not cloned. If don't mind sharing your code, I can try to help diagnose why the CU gets cloned... just send me a patch that applies to trunk and instructions.
-- adrian
> On Jun 16, 2017, at 1:54 PM, Sergei Larin <slarin at codeaurora.org> wrote:
>
> Sorry… It takes a pass that was not accepted for upstreaming….
2017 Jun 19
2
CloneFunctionInto produces invalid debug info
- old Keno
+current Keno
> On Jun 19, 2017, at 2:59 PM, Adrian Prantl <aprantl at apple.com> wrote:
>
> In your example the instructions in the cloned function have debug locations belonging to a different function, and the function itself is missing a DISubprogram metadata attachment.
>
>> (lldb) p OldFunc->dump()
>>
>> ; Function Attrs: nounwind optsize
2017 Jun 20
2
CloneFunctionInto produces invalid debug info
I was just going to say: With well-formed debug info it should create a deep copy up until the DISubprogram, but no further. But because the DISubprogram linked to the Function is missing the special handling of the DISubprogram (that would prohibit cloning the DICompileUnit is side-stepped).
But then I remembered the discussion we had in
2015 Jul 13
2
[LLVMdev] String attributes for function arguments and return values
Hi,
I’d like to support string attributes on function arguments and return values. We are going to use them in our tree to express higher level language types.
Internally attributes framework have everything to do this, it’s even possible to generate string attributes via API right now:
Function *function;
function->setAttributes(function->getAttributes().addAttribute(context, i,
2013 Mar 13
0
[LLVMdev] attributes helper functions - please review
These were requested by Bill Wendling to simplify a Mips 16 clang change.
The test is in the code in Clang which uses these for mips 16.
-------------- next part --------------
Index: include/llvm/IR/Function.h
===================================================================
--- include/llvm/IR/Function.h (revision 176874)
+++ include/llvm/IR/Function.h (working copy)
@@ -181,6 +181,14 @@
2015 Jul 13
2
[LLVMdev] String attributes for function arguments and return values
Hi,
On 13 Jul 2015, at 15:59, Hal Finkel <hfinkel at anl.gov<mailto:hfinkel at anl.gov>> wrote:
----- Original Message -----
From: "Artur Pilipenko" <apilipenko at azulsystems.com<mailto:apilipenko at azulsystems.com>>
To: llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>
Cc: "Hal Finkel" <hfinkel at anl.gov<mailto:hfinkel at
2015 Jul 22
2
[LLVMdev] (no subject)
Hello,
I have tried a lot fix this error but am not able to can you please
find me a solution am trying to compile the SAFECode in Cygwin Environment
to work for windows.
used make -j4 command to make the files in cygwin i have got this error
make[5]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include'
/usr/bin/cp: cannot stat
2013 Jan 16
0
[LLVMdev] CloneFunctionInto/MapValue, problem when VMap changes type
Hello All,
I am having a problem with using CloneFunctionInto to clone a function that includes changing the type of a value using the VMap. Specifically, I am using the VMap to change the address space of values that have particular pointer types.
The problem seems to be that RemapInstruction successfully changes the operands using the VMap, but the VTy member indicating the type of the
2015 Jul 15
3
[LLVMdev] String attributes for function arguments and return values
> On Jul 14, 2015, at 4:48 PM, Reid Kleckner <rnk at google.com> wrote:
>
> This sounds more like a use case for metadata. Can we attach metadata to function arguments, or does that not work currently?
We can’t, no.
I have an out of tree patch which allows metadata in AttributeSets. This would also potentially also work here.
However, depending on the number of unique
2009 Dec 21
1
[PATCH] snapshot: Explicitly remove unused disk source attribute
This fixes a regression introduced by 9e3d1160. Snapshot was leaving both dev
and file attributes specified. The result was that the v2v would actually
operate on the underlying storage rather than the snapshot.
---
snapshot/v2v-snapshot.pl | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/snapshot/v2v-snapshot.pl b/snapshot/v2v-snapshot.pl
index f089a77..e2cc33c 100755
2006 Jan 11
2
extending the Element.prototype to provide a setAttributes function
Hi folks, I''m pretty new to javascript and prototype, so I just want to get
some peer-review on a function I wrote that makes a handy (at least, it seems
handy) way to set a group of attributes on an element easily.
Object.extend(Element.prototype, {
setAttributes: function(attrs) {
var el = this;
$H(attrs).each( function(attr) {
el.setAttribute(attr[0], attr[1]);
2014 Oct 02
2
[LLVMdev] Use list preservation when using Instruction::clone
I'm trying to create a clone of a function using Function::Create()
and CloneFunctionInto. However, I'm running into an issue. I believe
that the instructions in the function clone still have Use edges to
values in the original function. This is a problem for my purposes.
For example, consider an original function F. I create a new function
G belonging to the same module and call