[Mesa-dev] LLVM + SPIRV-LLVM-Translator - compilation errors

Karol Herbst kherbst at redhat.com
Fri Nov 15 02:27:49 UTC 2019


might be that those definitions moved elsewhere or the headers were
never directly included.

In llvm 9 there are in llvm/InitializePasses.h, but maybe that's
changed? And if not, maybe that file needs to be included in
SPIRVLowerSPIRBlocks.cpp?

On Fri, Nov 15, 2019 at 2:34 AM Dieter Nützel <Dieter at nuetzel-hh.de> wrote:
>
> Hello Karol and Ilya,
>
> do you have any hints/pointers for me to solve these LLVM +
> SPIRV-LLVM-Translator - compilation errors.
>
> llvm-project git taken 'today'.
>
> [-]
> commit 95c770fbfb14b07e1af7c2d427c16745617d9f1f (HEAD -> master,
> origin/master, origin/HEAD)
> Author: Davide Italiano <ditaliano at apple.com>
> Date:   Thu Nov 14 15:29:28 2019 -0800
>
>      [Utility] Remove a dead header [PPC64LE_ehframe_Registers.h]
> [-]
>
> opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVLowerSPIRBlocks.cpp:617:1:
> note: in expansion of macro ‘INITIALIZE_PASS_DEPENDENCY’
>    617 | INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass)
>        | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> /opt/llvm-project/llvm/include/llvm/PassSupport.h:50:45: error:
> ‘initializeAssumptionCacheTrackerPass’ was not declared in this scope
>     50 | #define INITIALIZE_PASS_DEPENDENCY(
> initialize##depName##Pass(Registry);
>        |                                             ^~~~~~~~~~
> /opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVLowerSPIRBlocks.cpp:618:1:
> note: in expansion of macro ‘INITIALIZE_PASS_DEPENDENCY’
>    618 | INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
>        | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> /opt/llvm-project/llvm/include/llvm/PassSupport.h:50:45: error:
> ‘initializeAAResultsWrapperPassPass’ was not declared in this scope
>     50 | #define INITIALIZE_PASS_DEPENDENCY(depName)
> initialize##depName##Pass(Registry);
>        |                                             ^~~~~~~~~~
> /opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVLowerSPIRBlocks.cpp:619:1:
> note: in expansion of macro ‘INITIALIZE_PASS_DEPENDENCY’
>    619 | INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
>        | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> Thank you very much in advance.
> Dieter
>



More information about the mesa-dev mailing list