Changeset dab599b for lib/bpf-jit/bpf-jit.cc
- Timestamp:
- 07/09/10 11:22:40 (12 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- d9b0550
- Parents:
- 270fb67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/bpf-jit/bpf-jit.cc
rd48008d rdab599b 274 274 FunctionType* memsetType = FunctionType::get( 275 275 /*Result=*/Type::getVoidTy(getGlobalContext()), 276 construct_vector<const Type*>(4, 277 PointerType::get(IntegerType::get(getGlobalContext(), 8), 0), 278 IntegerType::get(getGlobalContext(), 8), 279 IntegerType::get(getGlobalContext(), 64), 280 IntegerType::get(getGlobalContext(), 32)), 276 construct_vector<const Type*>(5, 277 PointerType::get(IntegerType::get(getGlobalContext(), 8), 0), /*dest*/ 278 IntegerType::get(getGlobalContext(), 8), /* i8 val */ 279 IntegerType::get(getGlobalContext(), 64), /* i64 len */ 280 IntegerType::get(getGlobalContext(), 32), /* i32 align */ 281 IntegerType::get(getGlobalContext(), 1) /* i1 volatile */ 282 ), 281 283 /*isVarArg=*/false); 282 284 … … 330 332 ConstantInt* const_int64_13 = ConstantInt::get(getGlobalContext(), APInt(64, StringRef("1056"), 10)); 331 333 ConstantInt* const_int32_14 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("8"), 10)); 334 ConstantInt* const_int1_false = ConstantInt::get(getGlobalContext(), APInt(1, StringRef("0"), 10)); 332 335 333 336 // Function: bpf_run (func_bpf_run) … … 357 360 "state1", label_entry); 358 361 std::vector<Value*> void_25_params; 359 void_25_params.push_back(ptr_state1); 360 void_25_params.push_back(const_int8_12); 361 void_25_params.push_back(const_int64_13); 362 void_25_params.push_back(const_int32_14); 363 CallInst* void_25 = CallInst::Create(func_llvm_memset_i64, void_25_params.begin(), void_25_params.end(), "", label_entry); 362 void_25_params.push_back(ptr_state1); /* dest */ 363 void_25_params.push_back(const_int8_12); /* value */ 364 void_25_params.push_back(const_int64_13); /* length */ 365 void_25_params.push_back(const_int32_14); /* alignment */ 366 void_25_params.push_back(const_int1_false); /* volatile */ 367 CallInst* void_25 = CallInst::Create(func_llvm_memset_i64, 368 void_25_params.begin(), void_25_params.end(), 369 "", 370 label_entry); 364 371 void_25->setCallingConv(CallingConv::C); 365 void_25->setTailCall(false);AttrListPtr void_25_PAL; 372 void_25->setTailCall(false); 373 AttrListPtr void_25_PAL; 366 374 void_25->setAttributes(void_25_PAL); 367 375
Note: See TracChangeset
for help on using the changeset viewer.