Home | History | Annotate | Download | only in cpu

Lines Matching defs:function

53       // Create a function declaration.
54 llvm::Function* function =
55 llvm::cast<llvm::Function>(module_->getOrInsertFunction(
58 function->setCallingConv(llvm::CallingConv::C);
59 function->setDoesNotThrow();
60 function->setDoesNotAccessMemory();
61 // Create an instruction to call the function.
62 llvm::Value* result = ir_builder_->CreateCall(function, operand_value);
92 // Create a function declaration.
93 llvm::Function* function =
94 llvm::cast<llvm::Function>(module_->getOrInsertFunction(
97 function->setCallingConv(llvm::CallingConv::C);
98 function->setDoesNotThrow();
99 function->setDoesNotAccessMemory();
100 // Create an instruction to call the function.
101 llvm::Value* result = ir_builder_->CreateCall(function, {lhs, rhs});