Go to file
Daniel Sanders 123c38de3b Add ability to emit internal instruction representation to CodeGen assembly output.
Summary:
This patch re-uses the implementation of 'llvm-mc -show-inst' and makes it
available to llc as 'llc -asm-show-inst'.

This is necessary to test parts of MIPS32r6/MIPS64r6 without resorting to
'llc -filetype=obj' tests. For example, on MIPS32r2 and earlier we use the
'jr $rs' instruction for indirect branches and returns. On MIPS32r6, we no
longer have 'jr $rs' and use 'jalr $zero, $rs' instead. The catch is that,
on MIPS32r6, 'jr $rs' is an alias for 'jalr $zero, $rs' and is the preferred
way of writing this instruction. As a result, all MIPS ISA's emit 'jr $rs' in
their assembly output and the assembler encodes this to different opcodes
according to the ISA.

Using this option, we can check that the MCInst really is a JR or a JALR by
matching the emitted comment. This removes the need for a 'llc -filetype=obj'
test.

Reviewers: rafael, dsanders

Reviewed By: dsanders

Subscribers: zoran.jovanovic, llvm-commits

Differential Revision: http://reviews.llvm.org/D4267

llvm-svn: 212603
2014-07-09 10:07:36 +00:00
clang Fixed incompatibility with MSVC builds in range-based for loops in DataRecursiveASTVisitor and RecursiveASTVisitor for OpenMP constructs. 2014-07-09 10:00:31 +00:00
clang-tools-extra Delete removed formatting option. 2014-07-09 08:18:31 +00:00
compiler-rt tsan: reapply 212531 and 212532 with a fix 2014-07-08 20:37:16 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc prepare-builtins: Fix broken build due to recent LLVM API change 2014-07-07 17:46:45 +00:00
libcxx string_view enhancements. Move to the correct namespace. Better constexpr support (thanks to Richard for the suggestions). Update the tests to match this. Add <experimental/__config for experimental macros/etc to live. 2014-07-08 22:38:11 +00:00
libcxxabi Add a cmake build system. 2014-07-03 19:35:48 +00:00
lld Change llvm-nm to use -M instead of -s to work with latest llvm-nm 2014-07-09 00:25:52 +00:00
lldb __arm64__ and __aarch64__ #ifdef adjustments 2014-07-09 01:29:05 +00:00
llvm Add ability to emit internal instruction representation to CodeGen assembly output. 2014-07-09 10:07:36 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly Update for llvm api change. 2014-07-06 18:11:46 +00:00