HomeFreeBSD

lang/beignet: unbreak with llvm70

Description

lang/beignet: unbreak with llvm70

backend/src/backend/program.cpp:797:34: error: reference to type 'const llvm::Module' could not bind to an lvalue of type 'llvm::Module *'

llvm::WriteBitcodeToFile(*out_module, ostream);
                         ^~~~~~~~~~~

/usr/local/llvm70/include/llvm/Bitcode/BitcodeWriter.h:129:41: note: passing argument to parameter 'M' here

void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
                                      ^

backend/src/llvm/llvm_bitcode_link.cpp:343:36: error: no matching function for call to 'CloneModule'

llvm::Module * linked_module = llvm::CloneModule((llvm::Module*)mod).release();
                               ^~~~~~~~~~~~~~~~~

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:52:25: note: candidate function not viable: no known conversion from 'llvm::Module *' to 'const llvm::Module' for 1st argument; dereference the argument with *
std::unique_ptr<Module> CloneModule(const Module &M);

^

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:53:25: note: candidate function not viable: requires 2 arguments, but 1 was provided
std::unique_ptr<Module> CloneModule(const Module &M, ValueToValueMapTy &VMap);

^

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:60:1: note: candidate function not viable: requires 3 arguments, but 1 was provided
CloneModule(const Module &M, ValueToValueMapTy &VMap,
^
backend/src/llvm/ExpandLargeIntegers.cpp:230:5: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "\tRecording as forward PHI\n");
^

backend/src/llvm/ExpandLargeIntegers.cpp:237:5: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "\tTo:  " << *To.Lo << "\n");
^

backend/src/llvm/ExpandLargeIntegers.cpp:238:5: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "\tAnd: " << *To.Hi << "\n");
^

backend/src/llvm/ExpandLargeIntegers.cpp:247:5: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "\tTo:  " << *To << "\n");
^

backend/src/llvm/ExpandLargeIntegers.cpp:256:11: error: expected expression

DEBUG(if (!ForwardPHIs.empty()) dbgs() << "Patching forward PHIs:\n");
      ^

backend/src/llvm/ExpandLargeIntegers.cpp:261:7: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "\t" << *F.Lo << "\n\t" << *F.Hi << "\n");
^

backend/src/llvm/ExpandLargeIntegers.cpp:389:3: error: use of undeclared identifier 'DEBUG'

DEBUG(dbgs() << "Expanding Large Integer: " << *Inst << "\n");
^

backend/src/llvm/llvm_to_gen.cpp:142:13: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

MPM.add(createInstructionCombiningPass());// Clean up after IPCP & DAE
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:164:13: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

MPM.add(createInstructionCombiningPass());  // Combine silly seq's
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:172:13: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

MPM.add(createInstructionCombiningPass());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:209:13: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

MPM.add(createInstructionCombiningPass());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:215:13: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

MPM.add(createInstructionCombiningPass());  // Clean up after everything.
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:366:16: error: use of undeclared identifier 'createPromoteMemoryToRegisterPass'

passes.add(createPromoteMemoryToRegisterPass());
           ^

backend/src/llvm/llvm_to_gen.cpp:373:16: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createFunctionInliningPass'?

passes.add(createInstructionCombiningPass());  // legalize will generate some silly instructions
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

backend/src/llvm/llvm_to_gen.cpp:380:16: error: use of undeclared identifier 'createLowerSwitchPass'; did you mean 'createLoopUnswitchPass'?

passes.add(createLowerSwitchPass());           // simplify cfg will generate switch-case instruction
           ^~~~~~~~~~~~~~~~~~~~~

backend/src/backend/gen_program.cpp:452:32: error: reference to type 'const llvm::Module' could not bind to an rvalue of type 'llvm::Module *'

llvm::WriteBitcodeToFile((llvm::Module*)prog->module, OS);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/llvm70/include/llvm/Bitcode/BitcodeWriter.h:129:41: note: passing argument to parameter 'M' here

void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
                                      ^

backend/src/backend/gen_program.cpp:543:29: error: no matching function for call to 'CloneModule'

llvm::Module* clone = llvm::CloneModule(src).release();
                      ^~~~~~~~~~~~~~~~~

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:52:25: note: candidate function not viable: no known conversion from 'llvm::Module *' to 'const llvm::Module' for 1st argument; dereference the argument with *
std::unique_ptr<Module> CloneModule(const Module &M);

^

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:53:25: note: candidate function not viable: requires 2 arguments, but 1 was provided
std::unique_ptr<Module> CloneModule(const Module &M, ValueToValueMapTy &VMap);

^

/usr/local/llvm70/include/llvm/Transforms/Utils/Cloning.h:60:1: note: candidate function not viable: requires 3 arguments, but 1 was provided
CloneModule(const Module &M, ValueToValueMapTy &VMap,
^
backend/src/backend/gen_program.cpp:452:32: error: reference to type 'const llvm::Module' could not bind to an rvalue of type 'llvm::Module *'

llvm::WriteBitcodeToFile((llvm::Module*)prog->module, OS);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/llvm70/include/llvm/Bitcode/BitcodeWriter.h:129:41: note: passing argument to parameter 'M' here

void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
                                      ^

Obtained from: upstream (via Debian)
Approved by: portmgr blanket

Details

Provenance
jbeichAuthored on
Parents
rP477689: emulators/citra: update to s20180820
Branches
Unknown
Tags
Unknown