Displaying 20 results from an estimated 28 matches for "analysisid".
2017 Jan 26
2
AAResultsWrapperPass assertion in 3.9
Hi,
Migrating from 3.5 to 3.9. There is a module pass that uses alias analysis
started breaking at runtime:
llvm/lnx64/llvm/include/llvm/PassAnalysisSupport.h:236: AnalysisType&
llvm::Pass::getAnalysisID(llvm::AnalysisID) const [with AnalysisType =
llvm::AAResultsWrapperPass; llvm::AnalysisID = const void*]: Assertion
`ResultPass && "getAnalysis*() called on an analysis that was not "
"'required' by pass!"' failed.
What does this mean? I have this line in my...
2016 Mar 23
2
Help with pass manager
...std::unique_ptr<raw_svector_ostream> BOS;
if ((FileType != TargetMachine::CGFT_AssemblyFile && !objoutstream->os().supportsSeeking())) {
BOS = make_unique<raw_svector_ostream>(filebuf);
outstream = BOS.get();
}
AnalysisID StartBeforeID = nullptr;
AnalysisID StartAfterID = nullptr;
AnalysisID StopAfterID = nullptr;
const PassRegistry *PR = PassRegistry::getPassRegistry();
if (!RunPass.empty()) {
if (!StartAfter.empty() || !StopAfter.empty()) {
errs() <<...
2016 Mar 24
2
Help with pass manager
...S;
>> if ((FileType != TargetMachine::CGFT_AssemblyFile && !objoutstream->os().supportsSeeking())) {
>> BOS = make_unique<raw_svector_ostream>(filebuf);
>> outstream = BOS.get();
>> }
>>
>> AnalysisID StartBeforeID = nullptr;
>> AnalysisID StartAfterID = nullptr;
>> AnalysisID StopAfterID = nullptr;
>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>> if (!RunPass.empty()) {
>> if (!StartAfter.empty() || !StopAf...
2016 Mar 24
0
Help with pass manager
...w_svector_ostream> BOS;
> if ((FileType != TargetMachine::CGFT_AssemblyFile && !objoutstream->os().supportsSeeking())) {
> BOS = make_unique<raw_svector_ostream>(filebuf);
> outstream = BOS.get();
> }
>
> AnalysisID StartBeforeID = nullptr;
> AnalysisID StartAfterID = nullptr;
> AnalysisID StopAfterID = nullptr;
> const PassRegistry *PR = PassRegistry::getPassRegistry();
> if (!RunPass.empty()) {
> if (!StartAfter.empty() || !StopAfter.empty()) {
>...
2016 Mar 24
2
Help with pass manager
...getMachine::CGFT_AssemblyFile && !objoutstream->os().supportsSeeking())) {
>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>> outstream = BOS.get();
>>>> }
>>>>
>>>> AnalysisID StartBeforeID = nullptr;
>>>> AnalysisID StartAfterID = nullptr;
>>>> AnalysisID StopAfterID = nullptr;
>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>> if (!RunPass.empty()) {
>>>>...
2011 Jun 15
3
[LLVMdev] Cannot use function pass in a module pass
...so `opt` fails with the following mesage:
[***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so
-mymodulepass < input.bc >/dev/null
MyModulePass::runOnModule
MyFunctionPass::runOnFunction(process)
opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
void*]: Assertion `ResultPass && "Unable to find requested analysis
info"' failed.
0 opt 0x0000000000dbcd86
1 opt 0x0000000000dbcb82
2 l...
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
...he fancy output of clang
warnings/remarks).
The problem is, that the dependency to the LoopInfoWrapperPass does not seem
to work. The error is:
--- snip ---
clang-4.0: /var/tmp/portage/sys-devel/llvm-4.0.1/work/llvm-4.0.1.src/include/llvm/PassAnalysisSupport.h:236:
AnalysisType& llvm::Pass::getAnalysisID(llvm::AnalysisID) const [with AnalysisType = llvm::LoopInfoWrapperPass; llvm::AnalysisID = const void*]:
Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.
--- /snip ---
The minimal code, that trigger...
2016 Mar 24
0
Help with pass manager
...if ((FileType != TargetMachine::CGFT_AssemblyFile && !objoutstream->os().supportsSeeking())) {
>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>> outstream = BOS.get();
>>> }
>>>
>>> AnalysisID StartBeforeID = nullptr;
>>> AnalysisID StartAfterID = nullptr;
>>> AnalysisID StopAfterID = nullptr;
>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>> if (!RunPass.empty()) {
>>> if (!StartAfte...
2016 Mar 24
2
Help with pass manager
...!objoutstream->os().supportsSeeking())) {
>>>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>>> outstream = BOS.get();
>>>>>> }
>>>>>>
>>>>>> AnalysisID StartBeforeID = nullptr;
>>>>>> AnalysisID StartAfterID = nullptr;
>>>>>> AnalysisID StopAfterID = nullptr;
>>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>>>> if (!RunPass.em...
2016 Mar 24
2
Help with pass manager
...t;> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>>>>>>> outstream = BOS.get();
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> AnalysisID StartBeforeID = nullptr;
>>>>>>>>>> AnalysisID StartAfterID = nullptr;
>>>>>>>>>> AnalysisID StopAfterID = nullptr;
>>>>>>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();...
2016 Mar 24
0
Help with pass manager
The problems happens because PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) returns nullptr in PMTopLevelManager::addImmutablePass(ImmutablePass *P).
This because PassRegistry::getPassRegistry()->getPassInfo(AID) call in it returns nullptr as well.
Should I probably register the pass I want to add with PassRegistry::registerPass(const PassInfo &PI, bool ShouldF...
2016 Mar 30
1
Help with pass manager
...ey are added into a pass manager.
Are you calling TargetLibraryInfoWrapperPass::initializePass anywhere?
-Chris
> On Mar 24, 2016, at 10:41 AM, Lorenzo Laneve via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> The problems happens because PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) returns nullptr in PMTopLevelManager::addImmutablePass(ImmutablePass *P).
> This because PassRegistry::getPassRegistry()->getPassInfo(AID) call in it returns nullptr as well.
> Should I probably register the pass I want to add with PassRegistry::registerPass(const PassInfo &PI, bo...
2016 Mar 24
0
Help with pass manager
...emblyFile && !objoutstream->os().supportsSeeking())) {
>>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>> outstream = BOS.get();
>>>>> }
>>>>>
>>>>> AnalysisID StartBeforeID = nullptr;
>>>>> AnalysisID StartAfterID = nullptr;
>>>>> AnalysisID StopAfterID = nullptr;
>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>>> if (!RunPass.empty()) {
>>...
2016 Mar 24
2
Help with pass manager
...))) {
>>>>>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>>>>> outstream = BOS.get();
>>>>>>>> }
>>>>>>>>
>>>>>>>> AnalysisID StartBeforeID = nullptr;
>>>>>>>> AnalysisID StartAfterID = nullptr;
>>>>>>>> AnalysisID StopAfterID = nullptr;
>>>>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>>>>...
2011 Jun 16
0
[LLVMdev] Cannot use function pass in a module pass
...-- John T.
> [***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so
> -mymodulepass< input.bc>/dev/null
> MyModulePass::runOnModule
> MyFunctionPass::runOnFunction(process)
> opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
> llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
> AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
> void*]: Assertion `ResultPass&& "Unable to find requested analysis
> info"' failed.
> 0 opt 0x0000000000dbcd86
> 1 opt...
2016 Mar 24
0
Help with pass manager
...s().supportsSeeking())) {
>>>>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>>>> outstream = BOS.get();
>>>>>>> }
>>>>>>>
>>>>>>> AnalysisID StartBeforeID = nullptr;
>>>>>>> AnalysisID StartAfterID = nullptr;
>>>>>>> AnalysisID StopAfterID = nullptr;
>>>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>>>>>...
2016 Mar 24
0
Help with pass manager
...t;>>>>> BOS = make_unique<raw_svector_ostream>(filebuf);
>>>>>>>>> outstream = BOS.get();
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> AnalysisID StartBeforeID = nullptr;
>>>>>>>>> AnalysisID StartAfterID = nullptr;
>>>>>>>>> AnalysisID StopAfterID = nullptr;
>>>>>>>>> const PassRegistry *PR = PassRegistry::getPassRegistry();
>>>...
2011 Jun 16
1
[LLVMdev] Cannot use function pass in a module pass
...***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so
>> -mymodulepass< input.bc>/dev/null
>> MyModulePass::runOnModule
>> MyFunctionPass::runOnFunction(process)
>> opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
>> llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
>> AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
>> void*]: Assertion `ResultPass&& "Unable to find requested analysis
>> info"' failed.
>> 0 opt 0x0000000000dbcd86
>&g...
2019 Mar 31
2
Unable to find requested analysis info (Interesting Assertion Failture for Specific Target Source Code)
Dear all,
Hi! I encounter an interesting assertion failure when implementing my Pass, which is defined with the member functions shown below:
======================My Pass======================================
bool MYPass::runOnModule(Module &M)
{
for (auto &F : M)
{
SE = &getAnalysis<ScalarEvolutionWrapperPass>(F).getSE();
......
2020 Oct 02
2
Pass dependency error
...ernelsPass works fine but i am getting the error for
SimplifyGEPPass and i can't figure out why. Are FunctionPasses not
supposed to be used inside ModulePasses like that?
I also tried some llvm pass (MemorySSAWrapperPass) but i'm getting the
same error:
AnalysisType &llvm::Pass::getAnalysisID(llvm::AnalysisID) const
[AnalysisType = llvm::MemorySSAWrapperPass]: Assertion `ResultPass &&
"getAnalysis*() called on an analysis that was not " "'required' by
pass!"' f
I would really appreciate some help with this.
PS. I'm on LLVM 10, building th...