[all-commits] [llvm/llvm-project] bb2832: [IRBuilder] CreateIntrinsic with implicit mangling

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Aug 2 05:21:38 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb2832410e834ea48264bef911ffa47095aa56e3
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/lib/IR/IRBuilder.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  [IRBuilder] CreateIntrinsic with implicit mangling

Add a new IRBuilderBase::CreateIntrinsic which takes the return type and
argument values for the intrinsic call but does not take an explicit
list of types to mangle. Instead the builder works this out from the
intrinsic declaration and the types of the supplied arguments.

This means that the mangling is hidden from the client, which in turn
means that intrinsic definitions can change which arguments are mangled
without requiring any changes to the client code.

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

More information about the All-commits mailing list