Skip to content

Conversation

@Prabhuk
Copy link
Contributor

@Prabhuk Prabhuk commented Apr 3, 2024

Introducing EnableCallGraphSection target option to add
CalleeTypeIds field in CallSiteInfo. Read the callee type ids
in and out by the MIR parser/printer.

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Prabhuk pushed a commit to Prabhuk/llvm-project that referenced this pull request Apr 19, 2024
Add TypeId field to CallSiteInfo for tracking callee type id. Read the type
id in and out by the MIR parser/printer.

With this patch, TypeId is only set from callSites.typeId fields from MIR
inputs. An upcoming patch will pass type ids from the clang front-end,
and they will be read and set while lowering in the LLVM middle-end.

Original RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151044.html
Updated RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151739.html

Reviewed By:
morehouse

Differential Revision: https://reviews.llvm.org/D107110?id=362890

Pull Request: llvm#87574
Prabhuk and others added 14 commits April 24, 2024 11:16
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
@Prabhuk Prabhuk requested review from arsenm and ilovepi November 20, 2024 22:11
Prabhuk and others added 2 commits December 10, 2024 14:54
Created using spr 1.3.6-beta.1

[skip ci]
@Prabhuk Prabhuk changed the title [CallSiteInfo][CallGraphSection] Extend CallSiteInfo with TypeId [llvm] Extend CallSiteInfo with TypeId Dec 10, 2024
necipfazil and others added 3 commits February 2, 2025 00:58
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Prabhuk and others added 2 commits February 5, 2025 23:07
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Prabhuk and others added 9 commits July 18, 2025 15:33
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@Prabhuk Prabhuk changed the title [llvm] Add option to emit callgraph section [llvm] Add CalleeTypeIds field to CallSiteInfo Jul 18, 2025
@Prabhuk
Copy link
Contributor Author

Prabhuk commented Jul 18, 2025

I landed the patch that's a parent patch to this one #87573
@arsenm -- Can you please let me know if you have any concerns in landing this patch?

topperc and others added 4 commits July 21, 2025 21:44
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@Prabhuk Prabhuk changed the base branch from users/Prabhuk/sprmain.callsiteinfocallgraphsection-extend-callsiteinfo-with-typeid to main July 22, 2025 18:00
Created using spr 1.3.6-beta.1
@ilovepi
Copy link
Contributor

ilovepi commented Jul 23, 2025

LGTM w/ the improved/reduced tests.

@Prabhuk Prabhuk merged commit 7baf4bd into main Jul 23, 2025
9 checks passed
@Prabhuk Prabhuk deleted the users/Prabhuk/sprcallsiteinfocallgraphsection-extend-callsiteinfo-with-typeid branch July 23, 2025 17:11
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 23, 2025
Introducing `EnableCallGraphSection` target option to add
CalleeTypeIds field in CallSiteInfo. Read the callee type ids
in and out by the MIR parser/printer.

Reviewers: ilovepi

Reviewed By: ilovepi

Pull Request: llvm/llvm-project#87574
@vvereschaka
Copy link
Contributor

vvereschaka commented Jul 23, 2025

@Prabhuk ,

there are many failed tests

FAIL: LLVM::call-site-info-direct-calls-typeid.mir
FAIL: LLVM::call-site-info-ambiguous-indirect-call-typeid.mir
FAIL: LLVM::call-site-info-typeid.mir
error: /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/CodeGen/MIR/X86/call-site-info-typeid.mir:27:5: unknown machine instruction name 'CALL64m'
    CALL64m $noreg, 1, $noreg, 0, $noreg, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit-def $rsp, implicit-def $ssp :: (load (s64) from `ptr null`)

on these builders:

https://lab.llvm.org/buildbot/#/builders/155/builds/11277
https://lab.llvm.org/buildbot/#/builders/180/builds/21832
https://lab.llvm.org/buildbot/#/builders/54/builds/11130
https://lab.llvm.org/buildbot/#/builders/160/builds/21689

would you take care of it?

zeroomega added a commit that referenced this pull request Jul 23, 2025
Reverts #87574, which breaks LLVM ::
CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir tests
on linux-arm64 builders.
@Prabhuk
Copy link
Contributor Author

Prabhuk commented Jul 23, 2025

Thanks @vvereschaka for reporting. And thanks @zeroomega for the revert.

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 23, 2025
…150335)

Reverts llvm/llvm-project#87574, which breaks LLVM ::
CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir tests
on linux-arm64 builders.
MarkMurrayARM pushed a commit to MarkMurrayARM/arm-toolchain that referenced this pull request Jul 24, 2025
Introducing `EnableCallGraphSection` target option to add
CalleeTypeIds field in CallSiteInfo. Read the callee type ids
in and out by the MIR parser/printer.

Reviewers: ilovepi

Reviewed By: ilovepi

Pull Request: llvm/llvm-project#87574
MarkMurrayARM pushed a commit to MarkMurrayARM/arm-toolchain that referenced this pull request Jul 24, 2025
Reverts llvm/llvm-project#87574, which breaks LLVM ::
CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir tests
on linux-arm64 builders.
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Introducing `EnableCallGraphSection` target option to add
CalleeTypeIds field in CallSiteInfo. Read the callee type ids
in and out by the MIR parser/printer.

Reviewers: ilovepi

Reviewed By: ilovepi

Pull Request: llvm#87574
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Reverts llvm#87574, which breaks LLVM ::
CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir tests
on linux-arm64 builders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants