MCPcopy Create free account
hub / github.com/beefytech/Beef / SetConfigConst

Method SetConfigConst

IDEHelper/Compiler/BfIRCodeGen.cpp:5587–5596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5585}
5586
5587void 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
5598void BfIRCodeGen::SetActiveFunctionSimdType(BfIRSimdType type)
5599{

Callers 2

RunLoopMethod · 0.45
SetBackendMethod · 0.45

Calls 2

sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected