search for: my_test_metadata

Displaying 2 results from an estimated 2 matches for "my_test_metadata".

2013 Feb 13
0
[LLVMdev] write a transformation pass
...ile with clang++ my target program and I have my resulting Test.bc. I save it under Test1.bc. As a particular example, I have " %myDimension = alloca %class.ThreeDimension, align 4 ". Second, I apply my pass : //..../llvm/Release+Asserts/bin/opt -load //home/alex/llvm/Release+Asserts/lib/my_test_metadata.so -my-metadata //..../llvm/tools/clang/woRKSPACE/Test.bc Test1.bc and Test.bc are the same. In Test.bc no metadata is added. However, if in my transformation pass I debug with errs(), metadata is displayed ( " %myDimension = alloca %class.ThreeDimension, align 4, !sensitive !0, !md !1 "...
2013 Feb 13
0
[LLVMdev] write a transformation pass
...Wang <xi.wang at gmail.com> wrote: > On Wed, Feb 13, 2013 at 4:45 AM, Alexandru Ionut Diaconescu > <alexandruionutdiaconescu at gmail.com> wrote: > > Second, I apply my pass : > > //..../llvm/Release+Asserts/bin/opt -load > > //home/alex/llvm/Release+Asserts/lib/my_test_metadata.so -my-metadata > > //..../llvm/tools/clang/woRKSPACE/Test.bc > > opt doesn't make in-place changes to the input .bc. > > try: > opt -load=your.so -my-metadata test.bc > output.bc > > or: > opt -load=your.so -my-metadata test.bc -o output.bc > -- Best reg...