Displaying 12 results from an estimated 12 matches for "objectyaml".
2014 Jul 30
2
[LLVMdev] Unit tests failure in debug mode
...Global test environment set-up.
[----------] 1 test from StringTableBuilderTest
[ RUN ] StringTableBuilderTest.Basic
unittests/Object/ObjectTests: symbol lookup error:
unittests/Object/ObjectTests: undefined symbol:
_ZN4llvm13StringMapImpl11RehashTableEv
FAIL: LLVM-Unit :: Object/ObjectTests/ObjectYAML.BinaryRef (19424 of 20473)
******************** TEST 'LLVM-Unit ::
Object/ObjectTests/ObjectYAML.BinaryRef' FAILED ********************
Note: Google Test filter = ObjectYAML.BinaryRef
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 t...
2020 Sep 18
2
Making library calls for obj2yaml functionalities
...at tool) and loading it
in memory. It would've been great if we could just link with an LLVM
library which includes the data-structure and parsing support. It looks
like llvm-readelf is more structured around dumping/printing. However, I
can see structures like ELFYAML::StackSizesSection in
lib/ObjectYAML/ELFYAML.h which could be simply passed around.
Only tangentially relatedly, I've only just seen your previous patch/email
> thread, and I do have one thing I'd like to ask if it can be changed. At
> the moment, the section type is SHT_PROGBITS, but I think it would be
> better, if...
2018 Feb 25
0
Building llvm-5.0.1 on Solaris 10/sparc
Greetings, All:
I am trying to build llvm-5.0.1 on Solaris 10/Sparc with gcc-5.4.0 as
follows.
cmake -DLLVM_TARGETS_TO_BUILD="Sparc" /home/nemo/opt/llvm/llvm-5.0.1-src
I then invoke gmake and the build trundles along and stops as follows.
[ 62%] Building CXX object
lib/ObjectYAML/CMakeFiles/LLVMObjectYAML.dir/MachOYAML.cpp.o
/home/nemo/opt/llvm/llvm-5.0.1.src/lib/ObjectYAML/MachOYAML.cpp: In
static member function 'static void llvm::yaml::ScalarTraits<char
[16]>::output(const char (&)[16], void*, llvm::raw_ostream&)':
/home/nemo/opt/llvm/llvm-5.0.1.s...
2020 Sep 16
2
Making library calls for obj2yaml functionalities
...ructured contents of the .bb_addr_map
section with library calls into an LLVM library. At the same time, we need
to have tools/obj2yaml tests in place for bb_addr_map. So it sounds like
the perfect place to do it. However, the current structure does not expose
the obj2yaml functionalities under lib/ObjectYAML.
In general, there seems to be an inconsistency regarding how obj2yaml and
yaml2obj tools are structured. The latter has a nice wrapper which calls
environment-dependent functions under lib/ObjectYAML, but the former has
environment-dependent source files under tools/obj2yaml (elf2yaml.cc,
coff2ya...
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
On 25/06/2019 11:24, James Henderson via llvm-dev wrote:
> Hi Alex,
>
> Would you recommend that I do what is done in
> unittest/ObjectYAML/MinidumpYAMLTest.cpp which just uses a string
> inside the source file, or use an Inputs directory? Both are not
> great, as you point out about using an Inputs directory
>
>
> I'd be inclined to go with the string in the source file approach. It
> keeps the whole t...
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
.... But it sounds like
this doesn't exist on make alternatives, so this wont work.
There is actually a function to get the Inputs directory,
http://llvm.org/doxygen/namespacellvm_1_1unittest.html. I think it is only
used in one test, though. Would you recommend that I do what is done in
unittest/ObjectYAML/MinidumpYAMLTest.cpp which just uses a string inside
the source file, or use an Inputs directory? Both are not great, as you
point out about using an Inputs directory.
Also, I'm not sure that I can create an object without invoking yaml2obj
itself, I can't seem to find a function to do thi...
2018 Mar 17
0
Successful Build: llvm-5.0.1 on Solaris 10/sparc
...M_TARGETS_TO_BUILD=Sparc \
-DCMAKE_INSTALL_PREFIX=/home/build/llvm \
-DCMAKE_BUILD_TYPE=Release \
/home/build/opt/llvm/llvm-5.0.1.src
LD_OPTIONS="-z altexec64" gmake
A few problems arose:
1. Added code for strnlen to
llvm-5.0.1.src/tools/obj2yaml/macho2yaml.cpp and
llvm-5.0.1.src/lib/ObjectYAML/MachOYAML.cpp
(as strnlen() is not POSIX, hence not in <string.h>).
2. Changed grep-->ggrep in
bld.llvm-rel/tools/bugpoint-passes/CMakeFiles/BugpointPasses_exports.dir/build.make
(as "-q" is GNU not POSIX).
3. Release version of llvm-tblgen dumps core: copied over debug version...
2019 Jun 22
2
[CMake] External File Dependencies for Unit Tests
Hi,
I want to write unit tests for a project I am working on. I need to create
object files, preferably I want to have yaml files in the source tree and
have cmake generate object files using yaml2obj. Does anyone know what I
would put in the CMakeLists.txt to get this behavior?
For a concrete example if I didn’t explain clearly:
In llvm/unittests/Object I would maybe have an Inputs directory,
2018 Jan 31
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...39;m not
sure when I'll be able to get to it. Maybe in a month or two?
If you are willing to do the work to get it cleaned up and ok for
committing, then the first steps would be 1) Fix variable and function
names to conform to LLVM conventions, and 2) Remove the dependency in
llvm-objcopy on ObjectYAML.
BTW, I've also tried 8 byte ghashes locally, and in theory that should be
faster, but I found a case where it's slower than 20 byte ghashes. This
almost seems impossible, so I need to spend some time examining profiles to
see what's going on.
On Wed, Jan 31, 2018 at 4:44 AM Leonardo...
2018 Feb 14
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;ll be able to get to it. Maybe in a month or two?
>
> If you are willing to do the work to get it cleaned up and ok for
> committing, then the first steps would be 1) Fix variable and function names
> to conform to LLVM conventions, and 2) Remove the dependency in llvm-objcopy
> on ObjectYAML.
>
> BTW, I've also tried 8 byte ghashes locally, and in theory that should be
> faster, but I found a case where it's slower than 20 byte ghashes. This
> almost seems impossible, so I need to spend some time examining profiles to
> see what's going on.
>
> On Wed,...
2018 Jan 31
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
So I found all 20 bytes and changed then to GHASH_SIZE (a const I
defined in typehashing.h) and finished the switch to xxHash64, that
saved me around 50 seconds to 56s, then I changed it to uint64_t
instead of a 8 byte uint_8 array and that gave me 48s. With release
config and a pgo pass I'm now linking in 38s... so faster than
link.exe in vs 2017 (which is faster than vs 2015) doing fastlink.
2019 Apr 30
6
Disk space and RAM requirements in docs
...les/DynamicASTMatchersTests.dir
40M build/tools/clang/unittests/ASTMatchers/Dynamic/CMakeFiles
40M build/tools/clang/test/PCH/Output
40M build/tools/clang/test/PCH
37M build/tools/clang/unittests/Format/CMakeFiles/FormatTests.dir
37M build/tools/clang/unittests/Format/CMakeFiles
36M build/lib/ObjectYAML/CMakeFiles/LLVMObjectYAML.dir
36M build/lib/ObjectYAML/CMakeFiles
36M build/lib/ObjectYAML
35M build/tools/clang/lib/Format/CMakeFiles/clangFormat.dir
35M build/tools/clang/lib/Format/CMakeFiles
35M build/tools/clang/lib/Format
35M build/lib/Bitcode
33M build/lib/Passes/CMakeFiles/LLVMPasses...