Page MenuHomePhabricator

[flang] Correct TypeCode::IsLogical()
ClosedPublic

Authored by klausler on Apr 12 2021, 10:17 AM.

Details

Summary

F18 is using the type codes for C's "least" int types to encode
the various kinds of Fortran's LOGICAL intrinsic type; update
the IsLogical() predicate accordingly. (This member function
isn't yet used anywhere, so this patch is nearly an NFC.)

Diff Detail

Unit TestsFailed

TimeTest
130 msx64 debian > Clang.CodeGen::thinlto-distributed-newpm.ll
Script: -- : 'RUN: at line 6'; /mnt/disks/ssd0/agent/llvm-project/build/bin/opt -thinlto-bc -o /mnt/disks/ssd0/agent/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-distributed-newpm.ll.tmp.o /mnt/disks/ssd0/agent/llvm-project/clang/test/CodeGen/thinlto-distributed-newpm.ll
270 msx64 windows > Clang.CodeGen::thinlto-distributed-newpm.ll
Script: -- : 'RUN: at line 6'; c:\ws\w16c2-2\llvm-project\premerge-checks\build\bin\opt.exe -thinlto-bc -o C:\ws\w16c2-2\llvm-project\premerge-checks\build\tools\clang\test\CodeGen\Output\thinlto-distributed-newpm.ll.tmp.o C:\ws\w16c2-2\llvm-project\premerge-checks\clang\test\CodeGen\thinlto-distributed-newpm.ll

Event Timeline

klausler created this revision.Apr 12 2021, 10:17 AM
klausler requested review of this revision.Apr 12 2021, 10:17 AM
This revision is now accepted and ready to land.Apr 12 2021, 10:52 AM
This revision was landed with ongoing or failed builds.Apr 12 2021, 12:57 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2021, 12:57 PM