Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[X86] __tune_* defines don't follow -mtune #50125

Open
topperc opened this issue Jun 21, 2021 · 5 comments
Open

[X86] __tune_* defines don't follow -mtune #50125

topperc opened this issue Jun 21, 2021 · 5 comments
Labels
backend:X86 bugzilla Issues migrated from bugzilla

Comments

@topperc
Copy link
Collaborator

topperc commented Jun 21, 2021

Bugzilla Link 50781
Version trunk
OS All
CC @topperc,@RKSimon,@phoebewang,@rotateright

Extended Description

Note this is really a clang bug, but there's no good component for target specific clang code and this component has the right CC list.

When I implemented -mtune support, I failed to make the preprocessor defines follow the -mtune setting.

This probably means we need a setTuneCPU function like setCPU in TargetInfo. Then we need to split defineCPUMacros to remove the tuning define. I think other targets use defineCPUMacros, but set a bool to not define the tune defines so removing the code simplies the interface.

I probably won't have a chance to work on this for a while. Pengfei, can you or someone at Intel handle it?

@phoebewang
Copy link
Contributor

Sure, I can do it.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
@RKSimon
Copy link
Collaborator

RKSimon commented Jan 29, 2022

@phoebewang Re: https://reviews.llvm.org/D118527 - are you intending to look at this issue as part of that work?

@phoebewang
Copy link
Contributor

No, I intended to fix an downstream problem with it. But yes, this issue is in my todo list. I think it's a good chance to work for it too.

@MaskRay
Copy link
Member

MaskRay commented Jan 29, 2022

Defining __tune_* shall be nice. It does not block https://reviews.llvm.org/D118527 . I have checked various x86 __tune_*, they cannot be found in projects other than GCC :)

@phoebewang
Copy link
Contributor

Great. Thanks @MaskRay !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

4 participants