MCPcopy Create free account
hub / github.com/bytedance/bolt / compileBasicModule

Function compileBasicModule

bolt/jit/tests/ThrustJITv2Test.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 llvm::SmallVector<llvm::Value*, 2> callArgs;
101 for (auto& arg : func->args()) {
102 callArgs.push_back(&arg);
103 }
104 auto* callee = llvmModule.getFunction("extern_test_sum");
105 auto* callResult = builder.CreateCall(callee, callArgs);
106 auto* doubled = builder.CreateMul(callResult, builder.getInt64(2));
107 builder.CreateRet(doubled);
108
109 return llvm::verifyFunction(*func, &llvm::errs());

Callers 1

TESTFunction · 0.85

Calls 2

makeBasicIRGeneratorFunction · 0.85
CompileModuleMethod · 0.80

Tested by

no test coverage detected