Skip to content

Conversation

thewilsonator
Copy link
Contributor

@thewilsonator thewilsonator commented Jun 8, 2025

Best reviewed per commit.

I am unsure what the correct value to use for the llvm::LocationSize in the case we don't know the size.

There are still a bunch of deprecations from using InsertPosition e.g. from gIR->topallocapoint() instead of BasicBlock::iterators for insertion.

@thewilsonator
Copy link
Contributor Author

thewilsonator commented Jun 8, 2025

Also it seems that CallGraphNode::removeCallEdgeFor was removed (llvm/llvm-project#127411). I'm not sure how that functionality is supposed to be replaced. llvm/llvm-project@58bc98c suggests that we should use a LazyCallGraph and use the new pass manager. I'm not sure how close we are to making that a possibility.

For now I have just copied what the old code did inline.

@thewilsonator
Copy link
Contributor Author

This should be good to go now, but please give a thorough review on llvm::LocationSize and removeCallEdgeFor commits.

@thewilsonator
Copy link
Contributor Author

Ping

@thewilsonator
Copy link
Contributor Author

I will merge this tomorrow if there are no objections.

@thewilsonator thewilsonator merged commit 46bbe8b into ldc-developers:master Jul 7, 2025
19 of 21 checks passed
kinke added a commit to kinke/ldc that referenced this pull request Jul 28, 2025
Fix the undefined `getGlobalContext()` symbol for libldc-jit.so,
showing up with CircleCI, introduced in ldc-developers#4950.
kinke added a commit that referenced this pull request Jul 28, 2025
Fix the undefined `getGlobalContext()` symbol for libldc-jit.so,
showing up with CircleCI, introduced in #4950.
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.

2 participants