(Translated by https://www.hiragana.jp/)
[CIR][DirectToLLVM][NFC] Add include of target lowering library to DirectToLLVM by seven-mile · Pull Request #745 · llvm/clangir · GitHub
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

[CIR][DirectToLLVM][NFC] Add include of target lowering library to DirectToLLVM #745

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

seven-mile
Copy link
Collaborator

TargetLowering should also serve for DirectToLLVM for target-specific information. The library is already linked against DirectToLLVM, but we have to write dirty includes like #include "../../Dialect/Transforms/TargetLowering/LowerModule.h".

This PR adds a private include directory clang/lib/CIR/Dialect/Transforms/TargetLowering to the target DirectToLLVM. Then we can simplify the include directive above to #include "LowerModule.h".

@bcardosolopes bcardosolopes merged commit b7ff719 into llvm:main Jul 17, 2024
7 checks passed
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
…rectToLLVM (llvm#745)

TargetLowering should also serve for DirectToLLVM for target-specific
information. The library is already linked against DirectToLLVM, but we
have to write dirty includes like `#include
"../../Dialect/Transforms/TargetLowering/LowerModule.h"`.

This PR adds a private include directory
`clang/lib/CIR/Dialect/Transforms/TargetLowering` to the target
DirectToLLVM. Then we can simplify the include directive above to
`#include "LowerModule.h"`.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…rectToLLVM (llvm#745)

TargetLowering should also serve for DirectToLLVM for target-specific
information. The library is already linked against DirectToLLVM, but we
have to write dirty includes like `#include
"../../Dialect/Transforms/TargetLowering/LowerModule.h"`.

This PR adds a private include directory
`clang/lib/CIR/Dialect/Transforms/TargetLowering` to the target
DirectToLLVM. Then we can simplify the include directive above to
`#include "LowerModule.h"`.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…rectToLLVM (llvm#745)

TargetLowering should also serve for DirectToLLVM for target-specific
information. The library is already linked against DirectToLLVM, but we
have to write dirty includes like `#include
"../../Dialect/Transforms/TargetLowering/LowerModule.h"`.

This PR adds a private include directory
`clang/lib/CIR/Dialect/Transforms/TargetLowering` to the target
DirectToLLVM. Then we can simplify the include directive above to
`#include "LowerModule.h"`.
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