Lines Matching refs:CodegenLLVM
66 explicit BlockStack(CodegenLLVM *cc, BasicBlock *bb) in BlockStack()
78 CodegenLLVM *cc_;
84 explicit SwitchStack(CodegenLLVM *cc, SwitchInst *sw) in SwitchStack()
93 CodegenLLVM *cc_;
96 CodegenLLVM::CodegenLLVM(llvm::Module *mod, Scopes *scopes, Scopes *proto_scopes) in CodegenLLVM() function in ebpf::cc::CodegenLLVM
101 CodegenLLVM::~CodegenLLVM() { in ~CodegenLLVM()
106 void CodegenLLVM::emit(const char *fmt, Args&&... params) { in emit()
110 void CodegenLLVM::emit(const char *s) { in emit()
115 StatusTuple CodegenLLVM::visit_block_stmt_node(BlockStmtNode *n) { in visit_block_stmt_node()
132 StatusTuple CodegenLLVM::visit_if_stmt_node(IfStmtNode *n) { in visit_if_stmt_node()
165 StatusTuple CodegenLLVM::visit_onvalid_stmt_node(OnValidStmtNode *n) { in visit_onvalid_stmt_node()
198 StatusTuple CodegenLLVM::visit_switch_stmt_node(SwitchStmtNode *n) { in visit_switch_stmt_node()
219 StatusTuple CodegenLLVM::visit_case_stmt_node(CaseStmtNode *n) { in visit_case_stmt_node()
242 StatusTuple CodegenLLVM::visit_ident_expr_node(IdentExprNode *n) { in visit_ident_expr_node()
314 StatusTuple CodegenLLVM::visit_assign_expr_node(AssignExprNode *n) { in visit_assign_expr_node()
349 StatusTuple CodegenLLVM::lookup_var(Node *n, const string &name, Scopes::VarScope *scope, in lookup_var()
359 StatusTuple CodegenLLVM::visit_packet_expr_node(PacketExprNode *n) { in visit_packet_expr_node()
413 StatusTuple CodegenLLVM::visit_integer_expr_node(IntegerExprNode *n) { in visit_integer_expr_node()
422 StatusTuple CodegenLLVM::visit_string_expr_node(StringExprNode *n) { in visit_string_expr_node()
438 StatusTuple CodegenLLVM::emit_short_circuit_and(BinopExprNode *n) { in emit_short_circuit_and()
465 StatusTuple CodegenLLVM::emit_short_circuit_or(BinopExprNode *n) { in emit_short_circuit_or()
492 StatusTuple CodegenLLVM::visit_binop_expr_node(BinopExprNode *n) { in visit_binop_expr_node()
520 StatusTuple CodegenLLVM::visit_unop_expr_node(UnopExprNode *n) { in visit_unop_expr_node()
530 StatusTuple CodegenLLVM::visit_bitop_expr_node(BitopExprNode *n) { in visit_bitop_expr_node()
534 StatusTuple CodegenLLVM::visit_goto_expr_node(GotoExprNode *n) { in visit_goto_expr_node()
564 StatusTuple CodegenLLVM::visit_return_expr_node(ReturnExprNode *n) { in visit_return_expr_node()
573 StatusTuple CodegenLLVM::emit_table_lookup(MethodCallExprNode *n) { in emit_table_lookup()
616 StatusTuple CodegenLLVM::emit_table_update(MethodCallExprNode *n) { in emit_table_update()
647 StatusTuple CodegenLLVM::emit_table_delete(MethodCallExprNode *n) { in emit_table_delete()
674 StatusTuple CodegenLLVM::emit_log(MethodCallExprNode *n) { in emit_log()
695 StatusTuple CodegenLLVM::emit_packet_rewrite_field(MethodCallExprNode *n) { in emit_packet_rewrite_field()
701 StatusTuple CodegenLLVM::emit_atomic_add(MethodCallExprNode *n) { in emit_atomic_add()
712 StatusTuple CodegenLLVM::emit_incr_cksum(MethodCallExprNode *n, size_t sz) { in emit_incr_cksum()
749 StatusTuple CodegenLLVM::emit_get_usec_time(MethodCallExprNode *n) { in emit_get_usec_time()
753 StatusTuple CodegenLLVM::visit_method_call_expr_node(MethodCallExprNode *n) { in visit_method_call_expr_node()
785 StatusTuple CodegenLLVM::visit_table_index_expr_node(TableIndexExprNode *n) { in visit_table_index_expr_node()
887 StatusTuple CodegenLLVM::visit_match_decl_stmt_node(MatchDeclStmtNode *n) { in visit_match_decl_stmt_node()
920 StatusTuple CodegenLLVM::visit_miss_decl_stmt_node(MissDeclStmtNode *n) { in visit_miss_decl_stmt_node()
947 StatusTuple CodegenLLVM::visit_failure_decl_stmt_node(FailureDeclStmtNode *n) { in visit_failure_decl_stmt_node()
951 StatusTuple CodegenLLVM::visit_expr_stmt_node(ExprStmtNode *n) { in visit_expr_stmt_node()
957 StatusTuple CodegenLLVM::visit_struct_variable_decl_stmt_node(StructVariableDeclStmtNode *n) { in visit_struct_variable_decl_stmt_node()
1016 StatusTuple CodegenLLVM::visit_integer_variable_decl_stmt_node(IntegerVariableDeclStmtNode *n) { in visit_integer_variable_decl_stmt_node()
1031 StatusTuple CodegenLLVM::visit_struct_decl_stmt_node(StructDeclStmtNode *n) { in visit_struct_decl_stmt_node()
1042 StatusTuple CodegenLLVM::visit_parser_state_stmt_node(ParserStateStmtNode *n) { in visit_parser_state_stmt_node()
1051 StatusTuple CodegenLLVM::visit_state_decl_stmt_node(StateDeclStmtNode *n) { in visit_state_decl_stmt_node()
1080 StatusTuple CodegenLLVM::visit_table_decl_stmt_node(TableDeclStmtNode *n) { in visit_table_decl_stmt_node()
1122 StatusTuple CodegenLLVM::lookup_struct_type(StructDeclStmtNode *decl, StructType **stype) const { in lookup_struct_type()
1131 StatusTuple CodegenLLVM::lookup_struct_type(VariableDeclStmtNode *n, StructType **stype, in lookup_struct_type()
1153 StatusTuple CodegenLLVM::visit_func_decl_stmt_node(FuncDeclStmtNode *n) { in visit_func_decl_stmt_node()
1233 StatusTuple CodegenLLVM::visit(Node *root, TableStorage &ts, const string &id, in visit()
1263 StatusTuple CodegenLLVM::print_header() { in print_header()
1291 int CodegenLLVM::get_table_fd(const string &name) const { in get_table_fd()
1303 LLVMContext & CodegenLLVM::ctx() const { in ctx()
1307 Constant * CodegenLLVM::const_int(uint64_t val, unsigned bits, bool is_signed) { in const_int()
1311 Value * CodegenLLVM::pop_expr() { in pop_expr()
1317 BasicBlock * CodegenLLVM::resolve_label(const string &label) { in resolve_label()
1327 Instruction * CodegenLLVM::resolve_entry_stack() { in resolve_entry_stack()
1332 AllocaInst *CodegenLLVM::make_alloca(Instruction *Inst, Type *Ty, in make_alloca()
1341 AllocaInst *CodegenLLVM::make_alloca(BasicBlock *BB, Type *Ty, in make_alloca()