search for: createcanonicalizecfgpass

Displaying 1 result from an estimated 1 matches for "createcanonicalizecfgpass".

2011 May 30
1
[LLVMdev] Segfault when trying to schedule custom ImmutablePass
...just using this wrong, maybe there should be an assert. I've searched the mailing list archives, but didn't find anything related. Here's the code that segfaults: llvm::PassManager canonicalize; canonicalize.add(llvm::createIndVarSimplifyPass()); canonicalize.add(gla_llvm::createCanonicalizeCFGPass()); canonicalize.add(gla_llvm::createBackEndPointerPass(backEnd)); canonicalize.add(gla_llvm::createCanonicalizeInstsPass()); canonicalize.run(*module); where BackEndPointer is the Immutable Pass. This segfaults when ScalarEvolution tries to get TargetData if available. Below is the co...