llvm-project/llvm/lib/AsmParser
Sourabh Singh Tomar f91d18eaa9 [DebugInfo][flang]Added support for representing Fortran assumed length strings
This patch adds support for representing Fortran `character(n)`.

Primarily patch is based out of D54114 with appropriate modifications.

Test case IR is generated using our downstream classic-flang. We're in process
of upstreaming flang PR's but classic-flang has dependencies on llvm, so
this has to get in first.

Patch includes functional test case for both IR and corresponding
dwarf, furthermore it has been manually tested as well using GDB.

Source snippet:
```
 program assumedLength
   call sub('Hello')
   call sub('Goodbye')
   contains
   subroutine sub(string)
           implicit none
           character(len=*), intent(in) :: string
           print *, string
   end subroutine sub
 end program assumedLength
```

GDB:
```
(gdb) ptype string
type = character (5)
(gdb) p string
$1 = 'Hello'
```

Reviewed By: aprantl, schweitz

Differential Revision: https://reviews.llvm.org/D86305
2020-08-22 10:13:40 +05:30
..
CMakeLists.txt [cmake] LLVMAsmParser - add include/llvm/ASMParser header path 2020-04-18 12:31:40 +01:00
LLLexer.cpp IR: Define byref parameter attribute 2020-07-20 10:23:09 -04:00
LLLexer.h LLLexer.h - reduce SourceMgr.h include to SMLoc.h. NFC 2020-04-24 13:27:56 +01:00
LLParser.cpp [DebugInfo][flang]Added support for representing Fortran assumed length strings 2020-08-22 10:13:40 +05:30
LLParser.h [StackSafety] Use ValueInfo in ParamAccess::Call 2020-08-14 12:42:44 -07:00
LLToken.h IR: Define byref parameter attribute 2020-07-20 10:23:09 -04:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Parser.cpp Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00