SuccessChanges

Summary

  1. Create SPIRABIInfo to enable SPIR_FUNC calling convention. (details)
  2. [BasicAA] Add tests for non-zero var index (NFC) (details)
  3. [BasicAA] Make non-equal index handling simpler to extend (NFC) (details)
Commit 320af6b138391d289fe70db39c51da92e8d3d9df by melanie.blower
Create SPIRABIInfo to enable SPIR_FUNC calling convention.

Background: Call to library arithmetic functions for div is emitted by the
compiler and it set wrong “C” calling convention for calls to these functions,
whereas library functions are declared with `spir_function` calling convention.
InstCombine optimization replaces such calls with “unreachable” instruction.
It looks like clang lacks SPIRABIInfo class which should specify default
calling conventions for “system” function calls. SPIR supports only
SPIR_FUNC and SPIR_KERNEL calling convention.

Reviewers: Erich Keane, Anastasia

Differential Revision: https://reviews.llvm.org/D92721
The file was modifiedclang/test/CodeGen/complex-math.c
The file was modifiedclang/test/CodeGenOpenCLCXX/atexit.cl
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp
The file was modifiedclang/test/CodeGenOpenCL/builtins.cl
The file was modifiedclang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
The file was modifiedclang/test/CodeGenOpenCL/to_addr_builtin.cl
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
Commit b0ce2b72e8b70a4fb4b6ef385e0989955bd7e01b by nikita.ppv
[BasicAA] Add tests for non-zero var index (NFC)
The file was modifiedllvm/test/Analysis/BasicAA/sequential-gep.ll
Commit d716eab197abec0b9aab4a76cd1a52b248b8c3b1 by nikita.ppv
[BasicAA] Make non-equal index handling simpler to extend (NFC)
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp