similar to: [LLVMdev] Instrument examples

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Instrument examples"

2011 Nov 03
0
[LLVMdev] Instrument examples
Hi, > I am new to LLVM. I want to use LLVM to instrument codes, such as > function calls and basic blocks. But I don't know where to start. I wonder > if there are any example codes to show how to instrument codes in the IR > level? No idea what exactly you want to achieve, but let me try. First, you might need a function doing the instrument. Say, void
2011 Nov 03
0
[LLVMdev] Instrument examples
On 10/31/2011 2:53 AM, zhouxu(NUDT) wrote: > Hi, > I am new to LLVM. I want to use LLVM to instrument codes, such as > function calls and basic blocks. But I don't know where to start. I > wonder if there are any example codes to show how to instrument codes > in the IR level? First, have you read the Language Reference Manual, the Programmer's Manual, and the How
2011 Nov 04
1
[LLVMdev] Instrument examples
> No idea what exactly you want to achieve, but let me try. > > First, you might need a function doing the instrument. Say, > > void HowManyTimeThisFunctionGetCalled(); > > Then you can insert a call to the function above while creating > a LLVM function [1]. In that way, every time that LLVM function > get called the function doing the instrument will be called.
2011 Dec 20
3
[LLVMdev] creating new Metadata
Dear llvm-ers, I am trying to attach a customized metadata to llvm instructions. Let's say, I want to attach some number to each instruction. I am trying to use void Instruction::setMetadata(unsigned KindID, MDNode* Node) but I am not sure how to create a brand new instance of an MDNode. Do you have any code samples demonstrating how to do that? Due to some tool dependencies, I am using
2011 Dec 21
0
[LLVMdev] creating new Metadata
> Dear llvm-ers, > I am trying to attach a customized metadata to llvm instructions. > Let's say, I want to attach some number to each instruction. > I am trying to use > > void Instruction::setMetadata(unsigned KindID, MDNode* Node) > > but I am not sure how to create a brand new instance of an MDNode. > Do you have any code samples demonstrating how to do that?
2018 Nov 16
2
OSX 10.5 PowerPC and hang after "Looking for __cxa_throw in stdc++"
Sorry to have to ask... I'm catching too much noise from dumps. I'm building LLVM 7.0 using release tarballs on OS X 10.5 PowerPC. I'm building out-of-tree mostly following https://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary . Cmake gets this far and hangs: -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Looking
2011 Nov 01
1
[LLVMdev] Integrate my pass into opt?
Hi, I wrote a pass for myself. But the only way I know to run my pass is using the "-load" options of opt. I want to make my pass as a default pass integrated into opt so that I will not have to use the "-load" option every time. How could I do that? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Dec 22
3
[LLVMdev] creating new Metadata
Hello, Thank you very much for the pointers. I am are able to create new MDNodes, filled with some constants, and attach them to llvm instructions. However, the metadata map is not getting updated as expected. For example, instead of the expected new entry !n = metadata !{some values} we are getting !n = metadata !{null} Do you know what might be wrong? Do we need to enter the MDNodes into the
2007 Mar 02
1
instrument sfmmu_kdtlb_miss:entry??
Hi, is there a way to instrument entry of assembler function "sfmmu_kdtlb_miss" to use Dtrace infrastructure?? i know there is no "supported/standar" one since it does not appear as a fbt available probe. It has no "save" instruction and that seems to be one of the reasons. I''m talking about test system so maybe we can hack it with mdb?? TIA,
2018 Nov 16
2
LLVM_CONFIG_PATH when building Clang from sources
I'm trying to build LLVM, CFE and RT from sources on an old PowerMac with OS X 10.5. After download and unpack into LLVM_SOURCE_DIR (with --strip-components=1), I configure with: cmake -DCMAKE_INSTALL_PREFIX="/opt/llvm" \ -DLLVM_TARGETS_TO_BUILD="PowerPC" \ -DLLVM_INCLUDE_TOOLS="ON" \ -DLLVM_BUILD_TESTS="ON"
2011 Apr 05
4
[LLVMdev] instrument a byte code with llvm
hi, I'm newer in llvm i would like to instrument a byte code with a pass and as a result i would like to get an instrumented byte code. i would like that a pass add a method (which calculate the number of instructions) in the end of each block. the instrumented code should contain in each block a method that calculate the number of instructions Please Help me thank you -- Nabila ABDESSAIED
2020 Jul 19
2
Instrument intrinsic invalid
Hi, I try to use llvm-dis to disassemble the result after opt, my pass will add a intrinsic after the load instruction, like following: bool fpscan::ldAddMetadata (Instruction *Inst, StringRef c) { std::vector<Metadata *> dataTuples; // Add metadata in list dataTuples.push_back(MDString::get(Inst->getContext(), c)); MDNode* N = MDNode::get(Inst->getContext(),
2011 Dec 22
0
[LLVMdev] creating new Metadata
On 12/21/11 11:24 PM, Oksana Tkachuk wrote: > Hello, > Thank you very much for the pointers. > I am are able to create new MDNodes, filled with some constants, and > attach them > to llvm instructions. However, the metadata map is not getting updated > as expected. > For example, instead of the expected new entry If you look at PoolMDPass::runOnModule(), you'll see that
2011 Apr 05
0
[LLVMdev] instrument a byte code with llvm
On 4/5/11 11:36 AM, Nabila ABDESSAIED wrote: > > > 2011/4/5 John Criswell <criswell at illinois.edu > <mailto:criswell at illinois.edu>> > > On 4/5/11 11:22 AM, Nabila ABDESSAIED wrote: >> hi, >> I'm newer in llvm >> i would like to instrument a byte code with a pass and as a >> result i would like to get an
2007 Jun 28
2
NOTICE: cannot instrument return of fd_intr at 7b7d6278: non-canonical return instruction
Folks; During a jumpstart (2nd boot) of a Sun Fire 240 with Solaris 10 Update 3 (11/06), I noticed the following message; Jun 27 11:43:33 first fbt: NOTICE: cannot instrument return of fd_intr at 7b7d6278: non-canonical return instruction Kernel level was Generic_118833-33. Jumpstart was conducted using the standard JET modules. What gives? The jumpstart worked though. Solaris 10 installed
2012 Jun 15
1
voicemail password with phone instrument
Hello, voicemail password is not getting changed through phone handset while IVR indicates that password has been changed. During google I found that uniqueid column must not be changed so it is not changed. Please guide on this. During debug log I found below but in mysql db new password is not getting updated, [Jun 15 13:54:07] VERBOSE[6418] file.c: -- <SIP/123-00000005> Playing
2011 Mar 12
3
pass character vector in instrument field of get.hist.quote function
I am new to R so I apologize if my question is trivial. I have not been able to figure out whether what I want to do is even possible. I have a data frame of stock ticker symbols which I store into R space from a txt file as follows: tickers <- read.csv("stocks.txt", header=FALSE, sep=",") tickers <- tickers[1] / the tickers are stored in the first column >
2012 Apr 09
3
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi all, Im trying to instrument this hello function right before the instruction that call the "puts" function(the source code is as follow). Now I can compile the pass without errors, but when run the pass with opt tool, it broke down. The diagnose is something like Referencing function in another module! %CallCheck = call i32 @fib() Broken module found, compilation aborted! Does
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi, I got upset.. What does “Broken module found, compilation aborted!” mean really?? what‘s “broken module“?? -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-09 ------------------------------------------------------------------------------------------------------ Name: 甄凯(ZhenKai)
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
Thank you very much! To make it simpler, I may as well just implement the self-written "check function" in C language instead of wrapping it in LLVM module. According to the hint you give me, all I need to do is as follow(?) 1. Implement the "Check function" in the check.c file; 2. Add the check function into the module(the Hello1.bc file which I will run the functionPass on)