This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Renaming classes and functions.
ClosedPublic

Authored by gchatelet on Aug 3 2018, 2:13 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

gchatelet created this revision.Aug 3 2018, 2:13 AM
gchatelet updated this revision to Diff 158954.Aug 3 2018, 2:26 AM
  • Removing leftover and fixing some documentation.
gchatelet updated this revision to Diff 158955.Aug 3 2018, 2:28 AM

Rebase on master.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 3 2018, 2:30 AM
This revision was automatically updated to reflect the committed changes.
yubing added a subscriber: yubing.Sep 17 2019, 2:07 AM
yubing added inline comments.
llvm/trunk/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
221

Hi, gchatelet:

I just wonder how to run this testcase. Could you please give us some help?

Thanks

Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2019, 2:07 AM
gchatelet marked an inline comment as done.Sep 17 2019, 2:46 AM
gchatelet added inline comments.
llvm/trunk/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
221

Sure, the target you want to use is unittests/tools/llvm-exegesis/X86/all
Here is the full cmd line I'm using

> cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_BUILD_TESTS=ON -DBUILD_SHARED_LIBS=ON -DLLVM_USE_SPLIT_DWARF=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_ENABLE_WERROR=ON -H/redacted/git/llvm-project/llvm -B/tmp/llvm-project_dbg_compiled-with-clang -GNinja
> ninja -C /tmp/llvm-project_dbg_compiled-with-clang unittests/tools/llvm-exegesis/X86/all
> /tmp/llvm-project_dbg_compiled-with-clang/unittests/tools/llvm-exegesis/X86/LLVMExegesisX86Tests
yubing added inline comments.Sep 18 2019, 7:51 PM
llvm/trunk/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
221

Hi, gachatelet.
Thanks for your answers.
I got some trouble when run this test TEST_F(UopsBenchmarkRunnerTest, MemoryUse) :

Expected: has substring "no tied variables"
  Actual: "instruction is parallel, repeating a random one."

Could you please explain the meaning of the errorlog shown above?

yubing added inline comments.Sep 18 2019, 10:47 PM
llvm/trunk/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
221

When I debugged with gdb, I found that MOV32rm's AllDefRegs and AllUseRegs has no common elements which lead to this testfail
But I still don't know AllDefRegs and AllUseRegs's real meaning.

gchatelet marked 3 inline comments as done.Sep 19 2019, 4:14 AM
gchatelet added inline comments.
llvm/trunk/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
221

@yubing would you mind opening a bug on buganizer instead? I feel like the patch review is not the right place to debug your issue.
Also, are you sure the code is up to date?
If I open llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp I can't find TEST_F(UopsBenchmarkRunnerTest, MemoryUse) but TEST_F(UopsSnippetGeneratorTest, MemoryUse).

It seems like you're using an old version of the code.