| 5585 | } |
| 5586 | |
| 5587 | void BfIRCodeGen::SetConfigConst(int idx, int value) |
| 5588 | { |
| 5589 | auto constVal = llvm::ConstantInt::get(llvm::Type::getInt32Ty(*mLLVMContext), value); |
| 5590 | BF_ASSERT(idx == (int)mConfigConsts32.size()); |
| 5591 | mConfigConsts32.Add(constVal); |
| 5592 | |
| 5593 | constVal = llvm::ConstantInt::get(llvm::Type::getInt64Ty(*mLLVMContext), value); |
| 5594 | BF_ASSERT(idx == (int)mConfigConsts64.size()); |
| 5595 | mConfigConsts64.Add(constVal); |
| 5596 | } |
| 5597 | |
| 5598 | void BfIRCodeGen::SetActiveFunctionSimdType(BfIRSimdType type) |
| 5599 | { |
no test coverage detected