3 ms·
Hmmmm llvm::Value* JitDirectiveNode::CodeGen(Compiler& compiler) { // TODO: Implement the @jit shell-to-native translation engine. // 1. Read the con
by gavinray 10mo ago
Hmmmm
llvm::Value* JitDirectiveNode::CodeGen(Compiler& compiler) {
// TODO: Implement the @jit shell-to-native translation engine.
// 1. Read the content of the shell script at FilePath.
// 2. Parse the shell script into a sequence of POSIX-equivalent commands.
// 3. Translate these commands into LLVM IR, similar to ProcessCallNode.
// 4. Inline the generated IR into the current function.
// This is a major and complex part of the compiler.
return nullptr;
}