llvm-project/llvm/lib/AsmParser
Alok Kumar Sharma 9fb0025f70 [DebugInfo] Upgrade DISubragne::count to accept DIExpression also
This is needed for Fortran assumed shape arrays whose dimensions are
defined as,
  - 'count' is taken from array descriptor passed as parameter by
    caller, access from descriptor is defined by type DIExpression.
  - 'lowerBound' is defined by callee.
The current alternate way represents using upperBound in place of
count, where upperBound is calculated in callee in a temp variable
using lowerBound and count

Representation with count (DIExpression) is not only clearer as
compared to upperBound (DIVariable) but it has another advantage that
variable count is accessed by being parameter has better chance of
survival at higher optimization level than upperBound being local
variable.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D99335
2021-03-30 09:16:55 +05:30
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
LLLexer.cpp [IR] Add vscale_range IR function attribute 2021-03-22 12:05:06 +00:00
LLLexer.h LLLexer.h - reduce SourceMgr.h include to SMLoc.h. NFC 2020-04-24 13:27:56 +01:00
LLParser.cpp [DebugInfo] Upgrade DISubragne::count to accept DIExpression also 2021-03-30 09:16:55 +05:30
LLParser.h Reapply "OpaquePtr: Turn inalloca into a type attribute" 2021-03-29 08:55:30 -04:00
LLToken.h [IR] Add vscale_range IR function attribute 2021-03-22 12:05:06 +00:00
Parser.cpp Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00