builder_misc.cpp:137:55: error: ‘get’ is not a member of ‘llvm::ElementCount’
swr build error with llvm-11
In file included from /usr/include/llvm/IR/DataLayout.h:26,
from ../src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp:45,
from ../src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp:30:
/usr/include/llvm/IR/DerivedTypes.h:552:20: note: declared here
552 | inline VectorType *VectorType::get(Type *ElementType, unsigned NumElements) {
| ^~~~~~~~~~
../src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp: In member function ‘llvm::Value* SwrJit::Builder::VIMMED1(uint64_t)’:
../src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp:137:55: error: ‘get’ is not a member of ‘llvm::ElementCount’
137 | return ConstantVector::getSplat(ElementCount::get(mVWidth, false), cast<ConstantInt>(C(i)));
| ^~~