SuccessChanges

Summary

  1. [Driver] Create -ffile-compilation-dir alias (details)
  2. [Driver] Rename -fprofile-{prefix-map,compilation-dir} to -fcoverage-{prefix-map,compilation-dir} (details)
  3. [MC] Allow .cfi_sections with empty section list (details)
  4. [RISCV] Add test cases for fixed vector extract element with non-constant index. NFC (details)
  5. [Driver] Don't pass -ffile-compilation-dir through to cc1 (details)
Commit 9e56a093eeca15704180cce3a808aec195b331d1 by phosek
[Driver] Create -ffile-compilation-dir alias

We introduce -ffile-compilation-dir shorthand to avoid having to set
-fdebug-compilation-dir and -fprofile-compilation-dir separately. This
is similar to -ffile-prefix-map.

Differential Revision: https://reviews.llvm.org/D97433
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Driver/clang_f_opts.c
The file was modifiedclang/tools/driver/cc1as_main.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit 8459b8ef39f4d745f2aab8c43821b3389b0e5a74 by phosek
[Driver] Rename -fprofile-{prefix-map,compilation-dir} to -fcoverage-{prefix-map,compilation-dir}

These flags affect coverage mapping (-fcoverage-mapping), not
-fprofile-[instr-]generate so it makes more sense to use the
-fcoverage-* prefix.

Differential Revision: https://reviews.llvm.org/D97434
The file was modifiedclang/include/clang/Basic/CodeGenOptions.h
The file was modifiedclang/lib/CodeGen/CoverageMappingGen.cpp
The file was addedclang/test/CodeGen/coverage-compilation-dir.c
The file was modifiedclang/test/Driver/debug-prefix-map.c
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/CodeGen/CoverageMappingGen.h
The file was removedclang/test/Profile/profile-prefix-map.c
The file was removedclang/test/CodeGen/profile-compilation-dir.c
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was addedclang/test/Profile/coverage-prefix-map.c
Commit 880c9c56c1172418853cc81eeced492b4f0cefc2 by i
[MC] Allow .cfi_sections with empty section list

GNU as supports this. This mode silently ignores
.cfi_startproc/.cfi_endproc and .cfi_* in between.

Also drop a diagnostic `in '.cfi_sections' directive`: the diagnostic
already includes the line and it is clear the line is a `.cfi_sections` directive.
The file was modifiedllvm/lib/MC/MCStreamer.cpp
The file was modifiedllvm/test/MC/ELF/cfi.s
The file was modifiedllvm/lib/MC/MCParser/AsmParser.cpp
The file was addedllvm/test/MC/ELF/cfi-sections-empty.s
Commit a3beae6171ff1982cc2e1eafdc0fbfcab992577a by craig.topper
[RISCV] Add test cases for fixed vector extract element with non-constant index. NFC
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract.ll
Commit bf6380c0966b26a2aec7f2072efd0a1a9b6328f2 by phosek
[Driver] Don't pass -ffile-compilation-dir through to cc1

This is a driver only flag so it has to be expanded when invoking cc1.

Differential Revision: https://reviews.llvm.org/D97528
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/test/Driver/clang_f_opts.c