search for: metadatatest

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

2011 Dec 21
0
[LLVMdev] creating new Metadata
...o 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(&x[0], 3)); MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); ConstantInt *CI = ConstantInt::get(getGlobalContext(), APInt(8, 0)); std...
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
2009 Apr 08
2
[LLVMdev] new warnings
/Volumes/SandBox/clang/clang/clang/unittests/VMCore/MetadataTest.cpp: In member function 'virtual void<unnamed>::MDNodeTest_Everything_Test::TestBody()': /Volumes/SandBox/clang/clang/clang/unittests/VMCore/MetadataTest.cpp: 76: warning: dereferencing type-punned pointer will break strict- aliasing rules :-(
2011 Dec 22
3
[LLVMdev] creating new Metadata
...ting 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(&x[0], 3)); > MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); > ConstantInt *CI = ConstantInt::get(getGlobal...
2011 Dec 22
0
[LLVMdev] creating new Metadata
...> > > 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(&x[0], 3)); > MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); > ConstantInt *CI = Co...
2009 Apr 08
0
[LLVMdev] new warnings
Mike, Can you please just respond to the specific patch on llvm-commits instead of emailing llvm-dev? Thanks, -Tanya On Tue, 7 Apr 2009, Mike Stump wrote: > /Volumes/SandBox/clang/clang/clang/unittests/VMCore/MetadataTest.cpp: > In member function 'virtual > void<unnamed>::MDNodeTest_Everything_Test::TestBody()': > /Volumes/SandBox/clang/clang/clang/unittests/VMCore/MetadataTest.cpp: > 76: warning: dereferencing type-punned pointer will break strict- > aliasing rules > > :-( > _...
2017 Mar 06
1
Re: domain reinitalization detection
...r examples explaining that ? Documentation might come handy: http://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMetadata http://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMetadata or just look into our test suite: http://libvirt.org/git/?p=libvirt.git;a=blob;f=tests/metadatatest.c;h=55dc841254bcfda0742d22580723bf4acac172b4;hb=HEAD Michal -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e...
2017 Mar 06
2
domain reinitalization detection
Hello I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads. So far the best approach I could find is to compare domain ID from previous and current read. And this is my first question : is that reliable solution ? Or do you know any better ? And related question is how to resolve virDomainPtr into domain ID ? The
2017 Mar 06
0
Re: domain reinitalization detection
...r examples explaining that ? Documentation might come handy: http://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMetadata http://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMetadata or just look into our test suite: http://libvirt.org/git/?p=libvirt.git;a=blob;f=tests/metadatatest.c;h=55dc841254bcfda0742d22580723bf4acac172b4;hb=HEAD Michal
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...for Release+Asserts build llvm[2]: Compiling MDBuilderTest.cpp for Release+Asserts build llvm[2]: Compiling OptionalTest.cpp for Release+Asserts build llvm[2]: Linking Release+Asserts unit test MC (without symbols) llvm[2]: Compiling PackedVectorTest.cpp for Release+Asserts build llvm[2]: Compiling MetadataTest.cpp for Release+Asserts build llvm[3]: ======= Finished Linking Release+Asserts Unit test MCJIT (without symbols) make[3]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/unittests/ExecutionEngine/MCJIT' llvm[2]: Compiling ExecutionEngineTest.cpp for Release+Asserts build llvm[2]: Compil...