1. Feb 18, 2021
    • Fraser Cormack's avatar
      [SVE][CodeGen] Expand SVE MULH[SU] and [SU]MUL_LOHI nodes · 0176fecf
      Fraser Cormack authored
      This patch fixes a codegen crash introduced in fde24661, where the
      DAGCombiner started generating optimized MULH[SU] or [SU]MUL_LOHI nodes
      unless the target opted out. The AArch64 backend cannot currently select
      any of these nodes, so ensure that they are not generated in the first
      place.
      
      This issue was raised by @huihuiz in D94501.
      
      Reviewed By: paulwalker-arm
      
      Differential Revision: https://reviews.llvm.org/D96849
      0176fecf
    • Djordje Todorovic's avatar
      Revert "[Debugify] Make the debugify aware of the original (-g) Debug Info" · c1e23894
      Djordje Todorovic authored
      This reverts rG8ee7c7e0.
      One test is failing, I'll reland this as soon as possible.
      c1e23894
    • Alex Hoppen's avatar
      [cmake] Move check for libproc to config-ix.cmake · 55d8f0d0
      Alex Hoppen authored
      As suggested by Nico in https://reviews.llvm.org/D96049, move check for libproc
      from CMakeLists to config-ix.cmake
      
      Reviewed By: thakis
      
      Differential Revision: https://reviews.llvm.org/D96713
      
      Note: Also removes the CMAKE_REQUIRED_LIBRARIES which doesn't appear to
      be necessary.
      55d8f0d0
    • Djordje Todorovic's avatar
      [Debugify] Make the debugify aware of the original (-g) Debug Info · 8ee7c7e0
      Djordje Todorovic authored
      As discussed on the RFC [0], I am sharing the set of patches that
      enables checking of original Debug Info metadata preservation in
      optimizations. The proof-of-concept/proposal can be found at [1].
      
      The implementation from the [1] was full of duplicated code,
      so this set of patches tries to merge this approach into the existing
      debugify utility.
      
      For example, the utility pass in the original-debuginfo-check
      mode could be invoked as follows:
      
        $ opt -verify-debuginfo-preserve -pass-to-test sample.ll
      
      Since this is very initial stage of the implementation,
      there is a space for improvements such as:
        - Add support for the new pass manager
        - Add support for metadata other than DILocations and DISubprograms
      
      [0] https://groups.google.com/forum/#!msg/llvm-dev/QOyF-38YPlE/G213uiuwCAAJ
      [1] https://github.com/djolertrk/llvm-di-checker
      
      Differential Revision: https://reviews.llvm.org/D82545
      8ee7c7e0
    • Chen Zheng's avatar
      [XCOFF][NFC] make StorageMappingClass/SymbolType member optional · 4c23707a
      Chen Zheng authored
      This patch makes StorageMappingClass/SymbolType member optional in
      class MCSectionXCOFF.
      
      Non-csect sections like debug sections have no such properties.
      
      Reviewed By: hubert.reinterpretcast
      
      Differential Revision: https://reviews.llvm.org/D96641
      4c23707a
    • Haojian Wu's avatar
      [Syntax] No crash on OpaqueValueExpr. · 780ead41
      Haojian Wu authored
      OpaqueValueExpr doesn't correspond to the concrete syntax, it has
      invalid source location, ignore them.
      
      Reviewed By: kbobyrev
      
      Differential Revision: https://reviews.llvm.org/D96112
      780ead41
    • Yang Fan's avatar
      [CSSPGO][llvm-profgen] Fix gcc Wcast-qual warning (NFC) · 64fc9cc7
      Yang Fan authored
      GCC warning:
      ```
      [3397/3703] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/llvm-profgen.cpp.o
      In file included from /llvm-project/llvm/include/llvm/ADT/STLExtras.h:19,
                       from /llvm-project/llvm/include/llvm/ADT/StringRef.h:12,
                       from /llvm-project/llvm/include/llvm/ADT/Twine.h:13,
                       from /llvm-project/llvm/tools/llvm-profgen/ErrorHandling.h:12,
                       from /llvm-project/llvm/tools/llvm-profgen/llvm-profgen.cpp:13:
      /llvm-project/llvm/include/llvm/ADT/Optional.h: In instantiation of ‘void llvm::optional_detail::OptionalStorage<T, <anonymous> >::emplace(Args&& ...) [with Args = {const std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, llvm::sampleprof::LineLocation>}; T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’:
      /llvm-project/llvm/include/llvm/ADT/Optional.h:79:7:   required from ‘constexpr llvm::optional_detail::OptionalStorage<T, <anonymous> >::OptionalStorage(llvm::optional_detail::OptionalStorage<T, <anonymous> >&&) [with T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’
      /llvm-project/llvm/include/llvm/ADT/Optional.h:253:13:   required from here
      /llvm-project/llvm/include/llvm/ADT/Optional.h:113:12: warning: cast from type ‘const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
        113 |     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      [3398/3703] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/PerfReader.cpp.o
      In file included from /llvm-project/llvm/include/llvm/ADT/STLExtras.h:19,
                       from /llvm-project/llvm/include/llvm/ADT/StringRef.h:12,
                       from /llvm-project/llvm/include/llvm/ADT/Twine.h:13,
                       from /llvm-project/llvm/tools/llvm-profgen/ErrorHandling.h:12,
                       from /llvm-project/llvm/tools/llvm-profgen/PerfReader.h:11,
                       from /llvm-project/llvm/tools/llvm-profgen/PerfReader.cpp:8:
      /llvm-project/llvm/include/llvm/ADT/Optional.h: In instantiation of ‘void llvm::optional_detail::OptionalStorage<T, <anonymous> >::emplace(Args&& ...) [with Args = {const std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, llvm::sampleprof::LineLocation>}; T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’:
      /llvm-project/llvm/include/llvm/ADT/Optional.h:79:7:   required from ‘constexpr llvm::optional_detail::OptionalStorage<T, <anonymous> >::OptionalStorage(llvm::optional_detail::OptionalStorage<T, <anonymous> >&&) [with T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’
      /llvm-project/llvm/include/llvm/ADT/Optional.h:253:13:   required from here
      /llvm-project/llvm/include/llvm/ADT/Optional.h:113:12: warning: cast from type ‘const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
        113 |     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      [3399/3703] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o
      In file included from /llvm-project/llvm/include/llvm/ADT/STLExtras.h:19,
                       from /llvm-project/llvm/include/llvm/ADT/ArrayRef.h:15,
                       from /llvm-project/llvm/include/llvm/ADT/DenseMapInfo.h:18,
                       from /llvm-project/llvm/include/llvm/ADT/DenseMap.h:16,
                       from /llvm-project/llvm/include/llvm/ADT/DenseSet.h:16,
                       from /llvm-project/llvm/include/llvm/ProfileData/SampleProf.h:17,
                       from /llvm-project/llvm/tools/llvm-profgen/CallContext.h:12,
                       from /llvm-project/llvm/tools/llvm-profgen/ProfiledBinary.h:12,
                       from /llvm-project/llvm/tools/llvm-profgen/ProfiledBinary.cpp:9:
      /llvm-project/llvm/include/llvm/ADT/Optional.h: In instantiation of ‘void llvm::optional_detail::OptionalStorage<T, <anonymous> >::emplace(Args&& ...) [with Args = {const std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, llvm::sampleprof::LineLocation>}; T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’:
      /llvm-project/llvm/include/llvm/ADT/Optional.h:79:7:   required from ‘constexpr llvm::optional_detail::OptionalStorage<T, <anonymous> >::OptionalStorage(llvm::optional_detail::OptionalStorage<T, <anonymous> >&&) [with T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’
      /llvm-project/llvm/include/llvm/ADT/Optional.h:253:13:   required from here
      /llvm-project/llvm/include/llvm/ADT/Optional.h:113:12: warning: cast from type ‘const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
        113 |     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      [3404/3703] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o
      In file included from /llvm-project/llvm/include/llvm/ADT/STLExtras.h:19,
                       from /llvm-project/llvm/include/llvm/ADT/StringRef.h:12,
                       from /llvm-project/llvm/include/llvm/ADT/Twine.h:13,
                       from /llvm-project/llvm/tools/llvm-profgen/ErrorHandling.h:12,
                       from /llvm-project/llvm/tools/llvm-profgen/ProfileGenerator.h:11,
                       from /llvm-project/llvm/tools/llvm-profgen/ProfileGenerator.cpp:9:
      /llvm-project/llvm/include/llvm/ADT/Optional.h: In instantiation of ‘void llvm::optional_detail::OptionalStorage<T, <anonymous> >::emplace(Args&& ...) [with Args = {const std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, llvm::sampleprof::LineLocation>}; T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’:
      /llvm-project/llvm/include/llvm/ADT/Optional.h:79:7:   required from ‘constexpr llvm::optional_detail::OptionalStorage<T, <anonymous> >::OptionalStorage(llvm::optional_detail::OptionalStorage<T, <anonymous> >&&) [with T = const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>; bool <anonymous> = false]’
      /llvm-project/llvm/include/llvm/ADT/Optional.h:253:13:   required from here
      /llvm-project/llvm/include/llvm/ADT/Optional.h:113:12: warning: cast from type ‘const std::pair<std::__cxx11::basic_string<char>, llvm::sampleprof::LineLocation>*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
        113 |     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ```
      64fc9cc7
    • Alex Zinenko's avatar
      [mlir] generate enum translation functions with unused attribute · 12875ed9
      Alex Zinenko authored
      The functions translating enums to LLVM IR are generated in a single
      file included in many places, not all of which use all translations.
      Generate functions with "unused" attribute to silence compiler warnings.
      
      Reviewed By: mehdi_amini
      
      Differential Revision: https://reviews.llvm.org/D96880
      12875ed9
    • Juneyoung Lee's avatar
    • Andy Wingo's avatar
      [lld][WebAssembly] Fix resolveIndirectFunctionTable for relocatable output · 48219d06
      Andy Wingo authored
      For relocatable output that needs the indirect function table, identify
      the well-known function table.  This allows us to properly fix the
      limits on the imported table, and in a followup will allow the element
      section to reference the indirect function table even if it's not
      assigned to table number 0.  Adapt tests for import reordering.
      
      Differential Revision: https://reviews.llvm.org/D96770
      48219d06
    • Andy Wingo's avatar
      [WebAssembly][lld] --importTable flag only imports table if needed · f48923e8
      Andy Wingo authored
      Before, --importTable forced the creation of an indirect function table,
      whether it was needed or not.  Now it only imports a table if needed.
      
      Differential Revision: https://reviews.llvm.org/D96872
      f48923e8
    • Raphael Isemann's avatar
      [lldb][NFC] Silence missing case warnings in TypeSystemClang::GetTypeBitAlign... · fb1dc77b
      Raphael Isemann authored
      [lldb][NFC] Silence missing case warnings in TypeSystemClang::GetTypeBitAlign due to new RISC-V V types
      
      Those types were added in D92715. This just silences the warning but doesn't
      actually add support for those types to LLDB.
      fb1dc77b
    • Kazu Hirata's avatar
      [CodeGen] Use range-based for loops (NFC) · 61efa3d9
      Kazu Hirata authored
      61efa3d9
    • Kazu Hirata's avatar
      [llvm] Ensure newlines at the end of files (NFC) · e5457930
      Kazu Hirata authored
      This patch eliminates pesky "No newline at end of file" messages from
      git diff.
      e5457930
    • Kazu Hirata's avatar
      [CodeGen] Use ListSeparator (NFC) · 8e13bbca
      Kazu Hirata authored
      8e13bbca
    • Jason Molenda's avatar
      Add a new Row setting to mark all un-declared regs as Undefined · fcdef15d
      Jason Molenda authored
      Add a new state for UnwindPlan::Row which indicates that any
      register not listed is not defined, and should not be found in
      stack frames newer than this one and passed up the stack.  Mostly
      intended for use with architectural default unwind plans that are
      used for jitted stack frames, where we have no unwind information
      or start address.  lldb has no way to tell if registers were
      spilled in the jitted frame & overwritten, so passing register
      values up the stack is not safe to show the user.
      
      Architectural default unwind plans are also used as a fast unwind
      plan on x86_64 in particular, and are used as the fallback unwind
      plans when lldb thinks it may be able to work around a problem
      which causes the unwinder to stop walking the stack early.
      
      For fast unwind plans, when we don't find a register location in
      the arch default unwind plan, we fall back to computing & using
      the full unwind plan. One small part of this patch is to know that
      a register marked as Undefined in the fast unwind plan is a special
      case, and we should continue on to the full unwind plan to find what
      the real unwind rule is for this register.
      
      Differential Revision: https://reviews.llvm.org/D96829
      <rdar://problem/70398009>
      fcdef15d
    • Fangrui Song's avatar
      [profile] Make {__start_,__stop_}__llvm_prf_* symbols undefined weak · 833d4d8e
      Fangrui Song authored
      To make a kind of metadata section usage work, we want to drop the
      `__start_/__stop_ references retain C identifier name sections` rule from LLD (see D96914).
      
      If an application has no `__llvm_prf_data` input section surviving --gc-sections,
      LLD will error for undefined hidden `{__start_,__stop_}__llvm_prf_*` from `libclang_rt.profile-*`.
      Other `__llvm_prf_*` sections have similar issues.
      
      Making the references weak can address the problem.
      This probably enables the opportunity to drop zero size dummy sections in `InstrProfilingPlatformLinux.c`.
      
      Reviewed By: davidxl
      
      Differential Revision: https://reviews.llvm.org/D96936
      833d4d8e
    • Fangrui Song's avatar
      [llvm-objdump] Map STT_TLS to ST_Other (previously ST_Data) · 018a484c
      Fangrui Song authored
      ST_Data is used to model BFD `BFD_OBJECT`.
      A STT_TLS symbol does not have the `BFD_OBJECT` flag in BFD.
      This makes sense because a STT_TLS symbol is like in a different address space,
      normal data/object properties do not apply on them.
      
      With this change, a STT_TLS symbol will not be displayed as 'O'.
      This new behavior matches objdump.
      
      Differential Revision: https://reviews.llvm.org/D96735
      018a484c
    • Martin Storsjö's avatar
      [libcxx] Implement append and operator/ properly for windows · 78d693fa
      Martin Storsjö authored
      The root_path function has to be changed to return the parsed bit
      as-is; otherwise a path like "//net" gets a root path of "//net/", as
      the root name, "//net", gets the root directory (an empty string) appended,
      forming "//net/". (The same doesn't happen for the root dir "c:" though.)
      
      Differential Revision: https://reviews.llvm.org/D91178
      78d693fa
    • Yang Fan's avatar
      [MC][ELF] Fix gcc "enumeral and non-enumeral type in conditional expression" warning (NFC) · 3ae27fca
      Yang Fan authored
      GCC warning:
      ```
      /llvm-project/llvm/lib/MC/ELFObjectWriter.cpp: In member function ‘uint64_t {anonymous}::ELFWriter::writeObject(llvm::MCAssembler&, const llvm::MCAsmLayout&)’:
      /llvm-project/llvm/lib/MC/ELFObjectWriter.cpp:1137:38: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
       1137 |     write(uint32_t(Group->isComdat() ? ELF::GRP_COMDAT : 0));
            |                    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
      ```
      3ae27fca
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Temporary remove test · 3d10ec0d
      Stanislav Mekhanoshin authored
      Remove hsa-gfx90a-v3.s until D95638. It unexpectedly passes
      on s390x.
      3d10ec0d
    • Yang Fan's avatar
      [MC][ELF] Fix unused variable warning (NFC) · 796feb61
      Yang Fan authored
      GCC warning:
      ```
      /llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp: In member function ‘virtual llvm::MCSection* llvm::TargetLoweringObjectFileELF::getSectionForLSDA(const llvm::Function&, const llvm::MCSymbol&, const llvm::TargetMachine&) const’:
      /llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:871:8: warning: variable ‘IsComdat’ set but not used [-Wunused-but-set-variable]
        871 |   bool IsComdat = false;
            |        ^~~~~~~~
      ```
      796feb61
    • Vitaly Buka's avatar
      [NFC] Simplify msan test · 3afc8161
      Vitaly Buka authored
      3afc8161
    • Wang, Pengfei's avatar
      [X86] Zero AMX config buffer for non AVX512 cases. · e9c11c19
      Wang, Pengfei authored
      Zero AMX config buffer for non AVX512 cases.
      
      Differential Revision: https://reviews.llvm.org/D96927
      e9c11c19
    • Fangrui Song's avatar
      [GWP-ASan] Change sys/cdefs.h to features.h · da59c2e4
      Fangrui Song authored
      sys/cdefs.h is a glibc internal header which is not supposed to be included by applications.
      (Some libc implementations provide this file for compatibility.)
      Android features.h includes sys/cdefs.h, so we can include features.h instead.
      
      This change makes `ninja gwp_asan` build on musl.
      da59c2e4
    • Mehdi Chinoune's avatar
      [Flang] Fix compilation on MinGW-w64 · 8cfe9c02
      Mehdi Chinoune authored
      Reviewed By: Meinersbur
      
      Differential Revision: https://reviews.llvm.org/D94707
      8cfe9c02
    • Igor Kudrin's avatar
      [Driver] Honor "-gdwarf-N" at any position for assembler sources · a0c9ec1f
      Igor Kudrin authored
      This fixes an issue when "-gdwarf-N" switch was ignored if it was given
      before another debug option.
      
      Differential Revision: https://reviews.llvm.org/D96865
      a0c9ec1f
    • Wang, Pengfei's avatar
    • Craig Topper's avatar
      [RISCV] Guard LowerINSERT_VECTOR_ELT against fixed vectors. · 016eca8f
      Craig Topper authored
      The type legalizer can call this code based on the scalar type so
      we need to verify the vector type is a scalable vector.
      
      I think due to how type legalization visits nodes, the vector type
      will have already been legalized so we don't have an issue with
      using MVT here like we did for EXTRACT_VECTOR_ELT.
      I've added a test just in case.
      016eca8f
    • Fangrui Song's avatar
      [profile] Add __attribute__((used)) to zero size dummy sections · 58ecfccd
      Fangrui Song authored
      D14468 added these dummy sections. This patch adds `__attribute__((used))` so
      that when compiled by GCC>=11 or (expected, D96838) Clang>=13 on some ELF platforms,
      these sections will get SHF_GNU_RETAIN to make sure they will not be discarded
      by ld --gc-sections.
      
      We are trying to get rid of LLD's "__start_/__stop_ references retain C identifier name sections" rule.
      If LLD drops the rule in the future (we will retain compatibility for `__llvm_prf_*` for a while),
      `__llvm_prf_*` will need to have the SHF_GNU_RETAIN flag, otherwise:
      
      ```
      // __llvm_prf_cnts/__llvm_prf_data usually exist, but {names,vnds} may not exist.
      // Such diagnostics will happen with {cnts,data} as well if no input object file is instrumented.
      % clang++ -fprofile-generate a.cc -fuse-ld=lld -Wl,--gc-sections
      ld.lld: error: undefined hidden symbol: __start___llvm_prf_names
      >>> referenced by InstrProfilingPlatformLinux.c
      >>>               InstrProfilingPlatformLinux.c.o:(__llvm_profile_begin_names) in archive /tmp/RelA/lib/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a
      ...
      ```
      
      Differential Revision: https://reviews.llvm.org/D96902
      58ecfccd
    • Joseph Huber's avatar
      [LV] Add analysis remark for mixed precision conversions · c3a3d200
      Joseph Huber authored
      Floating point conversions inside vectorized loops have performance
      implications but are very subtle. The user could specify a floating
      point constant, or call a function without realizing that it will
      force a change in the vector width. An example of this behaviour is
      seen in https://godbolt.org/z/M3nT6c . The vectorizer should indicate
      when this happens becuase it is most likely unintended behaviour.
      
      This patch adds a simple check for this behaviour by following floating
      point stores in the original loop and checking if a floating point
      conversion operation occurs.
      
      Reviewed By: fhahn
      
      Differential Revision: https://reviews.llvm.org/D95539
      c3a3d200
    • Craig Topper's avatar
      [RISCV] Guard the ISD::EXTRACT_VECTOR_ELT handling in ReplaceNodeResults... · 00c4e0a8
      Craig Topper authored
      [RISCV] Guard the ISD::EXTRACT_VECTOR_ELT handling in ReplaceNodeResults against fixed vectors and non-MVT types.
      
      The type legalizer is calling this code based on the scalar type so
      we need to verify the input type is a scalable vector.
      
      The vector type has also not been legalized yet when this is called
      so we need to use EVT for it.
      00c4e0a8
    • Aart Bik's avatar
      [mlir][sparse] generalize sparse storage format to many more types · ff6c84b8
      Aart Bik authored
      Rationale:
      Narrower types for overhead storage yield a smaller memory footprint for
      sparse tensors and thus needs to be supported. Also, more value types
      need to be supported to deal with all kinds of kernels. Since the
      "one-size-fits-all" sparse storage scheme implementation is used
      instead of actual codegen, the library needs to be able to support
      all combinations of desired types. With some crafty templating and
      overloading, the actual code for this is kept reasonably sized though.
      
      Reviewed By: bixia
      
      Differential Revision: https://reviews.llvm.org/D96819
      ff6c84b8
    • Hsiangkai Wang's avatar
      [Clang][RISCV] Define RISC-V V builtin types · 766ee109
      Hsiangkai Wang authored
      Add the types for the RISC-V V extension builtins.
      
      These types will be used by the RISC-V V intrinsics which require
      types of the form <vscale x 1 x i64>(LMUL=1 element size=64) or
      <vscale x 4 x i32>(LMUL=2 element size=32), etc. The vector_size
      attribute does not work for us as it doesn't create a scalable
      vector type. We want these types to be opaque and have no operators
      defined for them. We want them to be sizeless. This makes them
      similar to the ARM SVE builtin types. But we will have quite a bit
      more types. This patch adds around 60. Later patches will add
      another 230 or so types representing tuples of these types similar
      to the x2/x3/x4 types in ARM SVE. But with extra complexity that
      these types are combined with the LMUL concept that is unique to
      RISCV.
      
      For more background see this RFC
      http://lists.llvm.org/pipermail/llvm-dev/2020-October/145850.html
      
      
      
      Authored-by: default avatarRoger Ferrer Ibanez <roger.ferrer@bsc.es>
      Co-Authored-by: default avatarHsiangkai Wang <kai.wang@sifive.com>
      
      Differential Revision: https://reviews.llvm.org/D92715
      766ee109
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Fixed msan build · 75997e84
      Stanislav Mekhanoshin authored
      LoadStoreOptimizer was using uninitialized SCC value for
      instructions where it is unsupported.
      75997e84
    • Eric Schweitz's avatar
      fd3297dc
    • Chen Zheng's avatar
      [XCOFF][NFC] make csect properties optional for getXCOFFSection · 5517923b
      Chen Zheng authored
      We are going to support debug sections for XCOFF. So the csect
      properties are not necessary. This patch makes these properties
      optional.
      
      Reviewed By: hubert.reinterpretcast
      
      Differential Revision: https://reviews.llvm.org/D95931
      5517923b
    • Eric Schweitz's avatar
      [flang][fir][NFC] Merge tablegen files. · 93015078
      Eric Schweitz authored
      Differential Revision: https://reviews.llvm.org/D96908
      93015078
    • Marco Vanotti's avatar
      [libunwind] Add support for PC reg column in arm64 · 78eabcaa
      Marco Vanotti authored
      This change adds support for the dwarf PC register column in arm64, allowing
      CFI directives to make use of it.
      
      As of the last revision of the DWARF for ARM 64-bit architecture[0], the pc
      register has been added as a valir register, with number 32.
      
      This allows libunwinder to restore both pc and lr, which is useful
      for stack switches and signal contexts.
      
      [0]:
      https://github.com/ARM-software/abi-aa/blob/f52e1ad3f81254497a83578dc102f6aac89e52d0/aadwarf64/aadwarf64.rst
      
      Reviewed By: phosek, #libunwind
      
      Differential Revision: https://reviews.llvm.org/D96901
      78eabcaa
    • Joerg Sonnenberger's avatar
      [NetBSD] Use cortex-a8 as default CPU for ARMv7 · 2628e914
      Joerg Sonnenberger authored
      This matches the platform default for GCC. It primarily matters when the
      integrated assembler is not used as there is no default CPU defined for
      ARMv7-A and GNU as is upset with -mcpu=generic.
      2628e914