Conversion of spv.BranchConditional now supports branch weights
that are mapped to weights vector in llvm.cond_br.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp | ||
---|---|---|
465 | You could construct this with DenseElementsAttr directly(it accepts ArrayRef<Attribute>): ShapedType weightType = VectorType::get(2, rewriter.getI32Type()); branchWeights = DenseElementsAttr::get(weightType, weights.getValue()); |
You could construct this with DenseElementsAttr directly(it accepts ArrayRef<Attribute>):