Go to file
Simon Atanasyan 32d8d1bf04 [mips] Add a pattern for 64-bit GPR variant of the `rdhwr` instruction
MIPS ISAs start to support third operand for the `rdhwr` instruction
starting from Revision 6. But LLVM generates assembler code with
three-operands version of this instruction on any MIPS64 ISA. The third
operand is always zero, so in case of direct code generation we get
correct code.

This patch fixes the bug by adding an instruction alias. The same alias
already exists for 32-bit ISA.

Ideally, we also need to reject three-operands version of the `rdhwr`
instruction in an assembler code if ISA revision is less than 6. That is
a task for a separate patch.

This fixes PR38861 (https://bugs.llvm.org/show_bug.cgi?id=38861)

Differential revision: https://reviews.llvm.org/D51773

llvm-svn: 341919
2018-09-11 09:57:25 +00:00
clang [Tooling] Restore working dir in ClangTool. 2018-09-11 07:29:09 +00:00
clang-tools-extra Revert "Revert "[clang-tidy] Handle unresolved expressions in ExprMutationAnalyzer"" 2018-09-11 02:23:35 +00:00
compiler-rt [ASan] [Windows] Remove const from _msize function declaration parameter 2018-09-11 06:07:32 +00:00
debuginfo-tests Revert "(Retry) Add a basic integration test for C++ smart pointers" 2018-08-20 19:53:33 +00:00
libclc amdgcn: Use __constant AS for amdgcn builtins. 2018-08-03 15:14:08 +00:00
libcxx ReleaseNotes: update links to use https 2018-09-10 08:57:12 +00:00
libcxxabi Port my recent changes from LLVM copy of the demangler: 2018-08-24 23:30:26 +00:00
libunwind [CMake] Don't use -rtlib=compiler-rt with -nodefaultlibs. 2018-09-04 20:57:50 +00:00
lld [ELF] Don't emit .relr.dyn section if there are no relocs 2018-09-10 21:54:56 +00:00
lldb Undoing first commit which added a space to a comment 2018-09-10 23:18:32 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [mips] Add a pattern for 64-bit GPR variant of the `rdhwr` instruction 2018-09-11 09:57:25 +00:00
openmp [OMPT] Update types according to TR7 2018-09-10 14:34:54 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [IR] Replace `isa<TerminatorInst>` with `isTerminator()`. 2018-08-26 09:51:22 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.