April 27, 2018 Fail to build ldc with a llvm SPIR-V enabled | ||||
---|---|---|---|---|
| ||||
Dear, After to build the llvm lib from https://github.com/thewilsonator/llvm . I tried to build ldc2 with v1.9-beta1 /ldc2-1.9/tools/ldc-profdata/llvm-profdata-5.0.cpp:175:6: error: no matching function for call to 'llvm::InstrProfWriter::addRecord(std::remove_reference<llvm::InstrProfRecord&>::type, const uint64_t&, loadInput(const WeightedFile&, WriterContext*)::<lambda(llvm::Error)>)' And we can see that the signature is not the same: $ grep addRecord /env/ig/soft/ig/llvm-spirv-5.0.0/el6-x86_64-generic/include/llvm/ProfileData/InstrProfWriter.h Error addRecord(InstrProfRecord &&I, uint64_t Weight = 1); with ldc2 1.8.0 /ldc2-1.8/runtime/jit-rt/cpp-so/disassembler.cpp:297:32: error: 'const class llvm::object::SectionRef' has no member named 'getIndex' And we can see that the signature do not exists into the modifief LLVM: $ grep -R getIndex /env/ig/soft/ig/llvm-spirv-5.0.0/el6-x86_64-generic/include/llvm/Object/ObjectFile.h $ I would like to know if someone has built ldc2 with LLVM SPIR-V enabled in order to use dcompute ? Thanks Best regards |
Copyright © 1999-2021 by the D Language Foundation