core llvm: refactor
core llvm: shift prim decls into context