[all-commits] [llvm/llvm-project] b8b036: [HLSL] Treat `main` as any other function (#110546)

Chris B via All-commits all-commits at lists.llvm.org
Tue Oct 1 05:36:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8b036a7fe5b6e7ec306e3b80367e22d157a492b
      https://github.com/llvm/llvm-project/commit/b8b036a7fe5b6e7ec306e3b80367e22d157a492b
  Author: Chris B <chris.bieneman at me.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M clang/lib/AST/Decl.cpp
    M clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl
    M clang/test/Options/enable_16bit_types_validation_spirv.hlsl

  Log Message:
  -----------
  [HLSL] Treat `main` as any other function (#110546)

HLSL doesn't distinguish `main` from any other function. It does treat
entry points special, but they're not required to be called `main` so we
have a different attribute annotation to mark them.

At the moment this change really just changes the mangling of functions
named `main` in the Itanium mangling.

Fixes #110517

---------

Co-authored-by: Farzon Lotfi <1802579+farzonl at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list