Changes

Summary

  1. [flang][driver] Add options for -Werror (details)
  2. [analyzer] DynamicSize: Store the dynamic size (details)
  3. [LoopFusion] Bails out if only the second candidate is guarded (PR48060) (details)
  4. [flang][driver] Modify the existing test cases that use -Mstandard in f18, to use -pedantic and %flang_fc1 to share with the new driver (details)
  5. [analyzer] DynamicSize: Debug facility (details)
  6. [analyzer] DynamicSize: Rename 'size' to 'extent' (details)
  7. [gn build] Port 9b3df78b4c2a (details)
  8. [TextAPI] move source code files out of subdirectory, NFC (details)
Commit 7416e8a8431a0f2711be9d16e111d1781b74df96 by arnamoy10
[flang][driver] Add options for -Werror

With the option given, warnings are treated as error.

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D98657
The file was modifiedflang/include/flang/Frontend/CompilerInvocation.h (diff)
The file was addedflang/test/Driver/werror_sema.f90
The file was modifiedflang/lib/Frontend/CompilerInvocation.cpp (diff)
The file was modifiedclang/include/clang/Driver/Options.td (diff)
The file was modifiedflang/test/Driver/driver-help-hidden.f90 (diff)
The file was modifiedclang/lib/Driver/ToolChains/Flang.cpp (diff)
The file was modifiedflang/test/Driver/driver-help.f90 (diff)
The file was addedflang/test/Driver/werror_wrong.f90
The file was modifiedflang/lib/Frontend/FrontendActions.cpp (diff)
The file was modifiedflang/tools/f18/f18.cpp (diff)
The file was addedflang/test/Driver/werror_scan.f
The file was addedflang/test/Driver/werror_parse.f
Commit df64f471d1e26fc1e9e2f9cdcfc77c063fe55b56 by charusso
[analyzer] DynamicSize: Store the dynamic size

This patch introduces a way to store the size.

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D69726
The file was modifiedclang/lib/StaticAnalyzer/Core/MemRegion.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp (diff)
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/DynamicSize.cpp (diff)
The file was modifiedclang/test/Analysis/explain-svals.cpp (diff)
Commit 6a82ace5f27fda10963f8b7b12299b61458d4904 by tu.da.wei
[LoopFusion] Bails out if only the second candidate is guarded (PR48060)

If only the second candidate loop is guarded while the first one is not, fusioning
two loops might not be valid but this check is currently missing.

Fixes https://bugs.llvm.org/show_bug.cgi?id=48060

Reviewed By: sidbav

Differential Revision: https://reviews.llvm.org/D99716
The file was addedllvm/test/Transforms/LoopFusion/pr48060.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopFuse.cpp (diff)
Commit 31ad5c14fefa66085eff3629c0cc8393556ba849 by arnamoy10
[flang][driver] Modify the existing test cases that use -Mstandard in f18, to use -pedantic and %flang_fc1 to share with the new driver

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D99518
The file was modifiedflang/test/Semantics/canondo10.f90 (diff)
The file was modifiedflang/test/Semantics/canondo08.f90 (diff)
The file was modifiedflang/test/Semantics/canondo14.f90 (diff)
The file was modifiedflang/test/Semantics/canondo19.f90 (diff)
The file was modifiedflang/test/Semantics/canondo11.f90 (diff)
The file was modifiedflang/test/Semantics/canondo12.f90 (diff)
The file was modifiedflang/test/Semantics/canondo18.f90 (diff)
The file was modifiedflang/test/Semantics/dosemantics03.f90 (diff)
The file was modifiedflang/test/Semantics/canondo17.f90 (diff)
The file was modifiedflang/test/Semantics/canondo07.f90 (diff)
The file was modifiedflang/test/Semantics/label01.F90 (diff)
The file was modifiedflang/test/Semantics/canondo16.f90 (diff)
The file was modifiedflang/test/Semantics/canondo09.f90 (diff)
The file was modifiedflang/test/Semantics/canondo13.f90 (diff)
The file was modifiedflang/test/Semantics/io10.f90 (diff)
The file was modifiedflang/test/Semantics/canondo15.f90 (diff)
The file was modifiedflang/test/Semantics/resolve103.f90 (diff)
Commit 89d210fe1a7a1c6cbf926df0595b6f107bc491d5 by charusso
[analyzer] DynamicSize: Debug facility

This patch adds two debug functions to ExprInspectionChecker to dump out
the dynamic extent and element count of symbolic values:
dumpExtent(), dumpElementCount().
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp (diff)
The file was modifiedclang/test/Analysis/expr-inspection.cpp (diff)
The file was modifiedclang/docs/analyzer/developer-docs/DebugChecks.rst (diff)
The file was addedclang/test/Analysis/memory-model.cpp
Commit 9b3df78b4c2ab7a7063e532165492e1ffa38d401 by charusso
[analyzer] DynamicSize: Rename 'size' to 'extent'
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp (diff)
The file was removedclang/lib/StaticAnalyzer/Core/DynamicSize.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp (diff)
The file was addedclang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicExtent.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/RegionStore.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/CMakeLists.txt (diff)
The file was removedclang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp (diff)
The file was addedclang/lib/StaticAnalyzer/Core/DynamicExtent.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/CheckPlacementNew.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/MemRegion.cpp (diff)
Commit 5abc7250122701012414733fc3273c01a45ffd29 by llvmgnsyncbot
[gn build] Port 9b3df78b4c2a
The file was modifiedllvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Core/BUILD.gn (diff)
Commit 0116d04d04f20e9ae62ba847075840c3cb298080 by Cyndy Ishida
[TextAPI] move source code files out of subdirectory, NFC

TextAPI/ELF has moved out into InterfaceStubs, so theres no longer a
need to seperate out TextAPI between formats.

Reviewed By: ributzka, int3, #lld-macho

Differential Revision: https://reviews.llvm.org/D99811
The file was removedllvm/lib/TextAPI/MachO/InterfaceFile.cpp
The file was modifiedllvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp (diff)
The file was removedllvm/lib/TextAPI/MachO/ArchitectureSet.cpp
The file was removedllvm/lib/TextAPI/MachO/TextStubCommon.cpp
The file was removedllvm/lib/TextAPI/MachO/TextStubCommon.h
The file was modifiedllvm/unittests/TextAPI/TextStubV3Tests.cpp (diff)
The file was modifiedclang/docs/ClangFormattedStatus.rst (diff)
The file was removedllvm/include/llvm/TextAPI/MachO/TextAPIWriter.h
The file was removedllvm/lib/TextAPI/MachO/TextAPIContext.h
The file was removedllvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
The file was modifiedllvm/unittests/TextAPI/TextStubV4Tests.cpp (diff)
The file was modifiedllvm/unittests/TextAPI/TextStubHelpers.h (diff)
The file was removedllvm/lib/TextAPI/MachO/Symbol.cpp
The file was removedllvm/include/llvm/TextAPI/MachO/InterfaceFile.h
The file was addedllvm/lib/TextAPI/Platform.cpp
The file was removedllvm/include/llvm/TextAPI/MachO/Symbol.h
The file was removedllvm/lib/TextAPI/MachO/TextStub.cpp
The file was removedllvm/lib/TextAPI/MachO/Target.cpp
The file was addedllvm/lib/TextAPI/PackedVersion.cpp
The file was modifiedlld/MachO/InputFiles.cpp (diff)
The file was modifiedlld/MachO/InputFiles.h (diff)
The file was modifiedlld/lib/ReaderWriter/MachO/File.h (diff)
The file was addedllvm/lib/TextAPI/ArchitectureSet.cpp
The file was modifiedllvm/lib/Object/TapiUniversal.cpp (diff)
The file was addedllvm/include/llvm/TextAPI/Architecture.def
The file was addedllvm/include/llvm/TextAPI/Architecture.h
The file was addedllvm/include/llvm/TextAPI/InterfaceFile.h
The file was modifiedllvm/lib/TextAPI/CMakeLists.txt (diff)
The file was modifiedlld/MachO/Config.h (diff)
The file was addedllvm/include/llvm/TextAPI/ArchitectureSet.h
The file was modifiedllvm/unittests/TextAPI/TextStubV1Tests.cpp (diff)
The file was modifiedlld/MachO/DriverUtils.cpp (diff)
The file was addedllvm/lib/TextAPI/TextStubCommon.h
The file was removedllvm/include/llvm/TextAPI/MachO/Architecture.def
The file was removedllvm/include/llvm/TextAPI/MachO/Platform.h
The file was addedllvm/lib/TextAPI/Target.cpp
The file was modifiedllvm/include/llvm/Object/TapiFile.h (diff)
The file was modifiedllvm/tools/llvm-ifs/llvm-ifs.cpp (diff)
The file was addedllvm/include/llvm/TextAPI/TextAPIReader.h
The file was removedllvm/include/llvm/TextAPI/MachO/Target.h
The file was removedllvm/lib/TextAPI/MachO/PackedVersion.cpp
The file was addedllvm/include/llvm/TextAPI/Symbol.h
The file was modifiedllvm/tools/llvm-lipo/llvm-lipo.cpp (diff)
The file was addedllvm/lib/TextAPI/TextAPIContext.h
The file was removedllvm/include/llvm/TextAPI/MachO/PackedVersion.h
The file was addedllvm/lib/TextAPI/InterfaceFile.cpp
The file was addedllvm/include/llvm/TextAPI/Platform.h
The file was addedllvm/lib/TextAPI/TextStubCommon.cpp
The file was addedllvm/lib/TextAPI/Architecture.cpp
The file was addedllvm/lib/TextAPI/TextStub.cpp
The file was modifiedlld/MachO/Driver.cpp (diff)
The file was modifiedllvm/include/llvm/Object/TapiUniversal.h (diff)
The file was removedllvm/lib/TextAPI/MachO/Platform.cpp
The file was removedllvm/lib/TextAPI/MachO/Architecture.cpp
The file was addedllvm/lib/TextAPI/Symbol.cpp
The file was removedllvm/include/llvm/TextAPI/MachO/TextAPIReader.h
The file was removedllvm/include/llvm/TextAPI/MachO/Architecture.h
The file was addedllvm/include/llvm/TextAPI/TextAPIWriter.h
The file was modifiedllvm/unittests/TextAPI/TextStubV2Tests.cpp (diff)
The file was addedllvm/include/llvm/TextAPI/PackedVersion.h
The file was addedllvm/include/llvm/TextAPI/Target.h