search for: llvm_sourc

Displaying 10 results from an estimated 10 matches for "llvm_sourc".

Did you mean: llvm_source
2011 Dec 21
0
[LLVMdev] creating new Metadata
...> > 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 LLVM 2.7 `grep -r MDNode` in $LLVM_SOURCE may give you some examples. I don't know if there is a doxygen for LLVM 2.7, but you can see include/llvm/Metadata.h and unittests/VMCore/MetadataTest.cpp to know how to create a MDNode. Below is code snipt taken form MetadataTest.cpp. --- MDString *s1 = MDString::get(Context, StringRef(&...
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 Nov 03
0
[LLVMdev] Instrument examples
...ng 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. You might need to take a look on ${LLVM_SOURCE}/example/HowToUseJIT to get a feel on how to create a LLVM module, function and basic block. Regards, chenwj [1] http://llvm.org/docs/ProgrammersManual.html#Function -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-37...
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 Dec 22
3
[LLVMdev] creating new Metadata
...Metadata(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 LLVM 2.7 > > `grep -r MDNode` in $LLVM_SOURCE may give you some examples. I don't > know if > there is a doxygen for LLVM 2.7, but you can see include/llvm/Metadata.h > and > unittests/VMCore/MetadataTest.cpp to know how to create a MDNode. Below is > code > snipt taken form MetadataTest.cpp. > > --- > MDStrin...
2011 Oct 31
4
[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? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL:
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" "$LLVM_SOURCE_DIR" It result...
2011 Feb 20
3
[LLVMdev] Build problems with llvm-gcc
...sing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber -I../libdecnumber -I/root/llvm_source/llvm/include -DSHARED -fexceptions -c ../../trunk/gcc/gthr-gnat.c -o libgcc/./gthr-gnat_s.o /root/llvm_gcc_source/llvm-gcc-objects/./gcc/xgcc -B/root/llvm_gcc_source/llvm-gcc-objects/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x8...
2011 Dec 22
0
[LLVMdev] creating new Metadata
...D, 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 LLVM 2.7 > > `grep -r MDNode` in $LLVM_SOURCE may give you some examples. I > don't know if > there is a doxygen for LLVM 2.7, but you can see > include/llvm/Metadata.h and > unittests/VMCore/MetadataTest.cpp to know how to create a MDNode. > Below is code > snipt taken form MetadataTest.cpp. &gt...
2011 Nov 04
1
[LLVMdev] Instrument examples
...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. > > You might need to take a look on ${LLVM_SOURCE}/example/HowToUseJIT > to get a feel on how to create a LLVM module, function and basic block. > > Regards, > chenwj > > [1] http://llvm.org/docs/ProgrammersManual.html#Function > > Yes, instrumenting functions is just one of my purpose. The API document (though not very d...