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

1.0.5585 fails to build against LLVM 11 #155

Closed
jbeich opened this issue Nov 24, 2020 · 1 comment
Closed

1.0.5585 fails to build against LLVM 11 #155

jbeich opened this issue Nov 24, 2020 · 1 comment

Comments

@jbeich
Copy link
Contributor

jbeich commented Nov 24, 2020

Regressed by 150427e. From error log:

In file included from IGC/VectorCompiler/lib/GenXOpts/CMPacketize/PacketBuilder.h:40:
IGC/WrapperLLVM/include/llvmWrapper/Support/Alignment.h:93:16: error: no viable conversion from returned value of type 'llvm::MaybeAlign' to function return type 'IGCLLVM::Align' (aka 'llvm::Align')
        return Val.getAlign();
               ^~~~~~~~~~~~~~
IGC/VectorCompiler/lib/GenXOpts/CMPacketize/GenXPacketize.cpp:279:37: note: in instantiation of function template specialization 'IGCLLVM::getAlign<llvm::Function, 0>' requested here
  ClonedFunc->setAlignment(IGCLLVM::getAlign(*F));
                                    ^
/usr/include/llvm/Support/Alignment.h:71:13: note: candidate constructor not viable: no known conversion from 'llvm::MaybeAlign' to 'const llvm::Align &' for 1st argument
  constexpr Align(const Align &Other) = default;
            ^
/usr/include/llvm/Support/Alignment.h:72:13: note: candidate constructor not viable: no known conversion from 'llvm::MaybeAlign' to 'llvm::Align &&' for 1st argument
  constexpr Align(Align &&Other) = default;
            ^
/usr/include/llvm/Support/Alignment.h:109:13: note: candidate constructor not viable: no known conversion from 'llvm::MaybeAlign' to 'llvm::Align::LogValue' for 1st argument
  constexpr Align(LogValue CA) : ShiftValue(CA.Log) {}
            ^
1 error generated.

I've tried to revert 150427e only to bump into 07d74a9 regression:

IGC/Compiler/CISACodeGen/ResolveGAS.cpp:83:28: error: use of undeclared identifier 'AAResultsWrapperPass'
            AU.addRequired<AAResultsWrapperPass>();
                           ^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:83:49: error: expected unqualified-id
            AU.addRequired<AAResultsWrapperPass>();
                                                ^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:706:5: error: unknown type name 'AliasAnalysis'
    AliasAnalysis* AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
    ^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:706:38: error: use of undeclared identifier 'AAResultsWrapperPass'
    AliasAnalysis* AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
                                     ^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:781:27: error: use of undeclared identifier 'MemoryLocation'; did you mean 'TempDILocation'?
            if (AA->alias(MemoryLocation::get(SI), MemoryLocation::get(LI))) {
                          ^~~~~~~~~~~~~~
                          TempDILocation
/usr/include/llvm/IR/Metadata.def:82:1: note: 'TempDILocation' declared here
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocation)
^
/usr/include/llvm/IR/Metadata.def:46:3: note: expanded from macro 'HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE'
  HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS)
  ^
/usr/include/llvm/IR/Metadata.def:67:47: note: expanded from macro 'HANDLE_SPECIALIZED_MDNODE_LEAF'
#define HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) HANDLE_MDNODE_LEAF(CLASS)
                                              ^
/usr/include/llvm/IR/Metadata.h:850:9: note: expanded from macro 'HANDLE_MDNODE_LEAF'
  using Temp##CLASS = std::unique_ptr<CLASS, TempMDNodeDeleter>;
        ^
<scratch space>:15:1: note: expanded from here
TempDILocation
^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:781:43: error: call to non-static member function without an object argument
            if (AA->alias(MemoryLocation::get(SI), MemoryLocation::get(LI))) {
                          ~~~~~~~~~~~~~~~~^~~
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:781:52: error: use of undeclared identifier 'MemoryLocation'; did you mean 'TempDILocation'?
            if (AA->alias(MemoryLocation::get(SI), MemoryLocation::get(LI))) {
                                                   ^~~~~~~~~~~~~~
                                                   TempDILocation
/usr/include/llvm/IR/Metadata.def:82:1: note: 'TempDILocation' declared here
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocation)
^
/usr/include/llvm/IR/Metadata.def:46:3: note: expanded from macro 'HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE'
  HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS)
  ^
/usr/include/llvm/IR/Metadata.def:67:47: note: expanded from macro 'HANDLE_SPECIALIZED_MDNODE_LEAF'
#define HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) HANDLE_MDNODE_LEAF(CLASS)
                                              ^
/usr/include/llvm/IR/Metadata.h:850:9: note: expanded from macro 'HANDLE_MDNODE_LEAF'
  using Temp##CLASS = std::unique_ptr<CLASS, TempMDNodeDeleter>;
        ^
<scratch space>:15:1: note: expanded from here
TempDILocation
^
IGC/Compiler/CISACodeGen/ResolveGAS.cpp:781:68: error: call to non-static member function without an object argument
            if (AA->alias(MemoryLocation::get(SI), MemoryLocation::get(LI))) {
                                                   ~~~~~~~~~~~~~~~~^~~
8 errors generated.
@pszymich
Copy link
Contributor

Hello,

We don't support building against LLVM 11 yet.
Please check out comments in this issue: #152
Also, we provide information on LLVM compatibility in our build_ubuntu.md documentation file.

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

No branches or pull requests

2 participants