[all-commits] [llvm/llvm-project] 6811b9: [flang] Runtime: implement INDEX intrinsic function

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 15 14:19:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6811b961000fea84b44a225162ffa6cd434e1d63
      https://github.com/llvm/llvm-project/commit/6811b961000fea84b44a225162ffa6cd434e1d63
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

  Changed paths:
    M flang/runtime/character.cpp
    M flang/runtime/character.h
    M flang/test/Evaluate/folding05.f90
    M flang/unittests/RuntimeGTest/CharacterTest.cpp

  Log Message:
  -----------
  [flang] Runtime: implement INDEX intrinsic function

Implement INDEX in the runtime, reusing some infrastructure
(with generalization and renaming as needed) put into place
for its cousins SCAN and VERIFY.

I did not implement full Boyer-Moore substring searching
for the forward case, but did accelerate some advancement on
mismatches.

I (re)implemented unit testing for INDEX in the new gtest
framework, combining it with the tests that have recently
been ported to gtest for SCAN and VERIFY.

Differential Revision: https://reviews.llvm.org/D98553




More information about the All-commits mailing list