Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:function

86   llvm::Constant *function;
97 // If __cxa_atexit is disabled via a flag, a different helper function is
105 function = CGM.getAddrOfCXXStructor(dtor, StructorType::Complete);
109 // Otherwise, the standard logic requires a helper function.
111 function = CodeGenFunction(CGM)
117 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument);
192 /// Create a stub function, suitable for being passed to atexit,
193 /// which passes the given address to the given destructor function.
197 // Get the destructor function type, void(*)(void).
206 llvm::Function *fn = CGM.CreateGlobalInitOrDestructFunction(ty, FnName.str(),
217 if (llvm::Function *dtorFn =
218 dyn_cast<llvm::Function>(dtor->stripPointerCasts()))
226 /// Register a global destructor using the C atexit runtime function.
230 // Create a function which calls the destructor.
239 if (llvm::Function *atexitFn = dyn_cast<llvm::Function>(atexit))
259 llvm::Function *CodeGenModule::CreateGlobalInitOrDestructFunction(
262 llvm::Function *Fn =
263 llvm::Function::Create(FTy, llvm::GlobalValue::InternalLinkage,
293 /// Create a global pointer to a function that will initialize a global
298 llvm::Function *InitFunc,
338 // Create a variable initialization function.
339 llvm::Function *Fn =
356 // FIXME: We only need to register one __cxa_thread_atexit function for the
419 // Create our global initialization function.
421 SmallVector<llvm::Function *, 8> LocalCXXGlobalInits;
425 // into separate function. Note - everything is sorted first by priority,
435 // Compute the function suffix from priority. Prepend with zeroes to make
436 // sure the function names are also ordered as priorities.
440 llvm::Function *Fn = CreateGlobalInitOrDestructFunction(
470 llvm::Function *Fn = CreateGlobalInitOrDestructFunction(
485 // Create our global destructor function.
487 llvm::Function *Fn =
495 void CodeGenFunction::GenerateCXXGlobalVarDeclInitFunc(llvm::Function *Fn,
501 DebugInfo = nullptr; // disable debug info indefinitely for this function
523 CodeGenFunction::GenerateCXXGlobalInitFunc(llvm::Function *Fn,
524 ArrayRef<llvm::Function *> Decls,
530 // Emit an artificial location for this function.
574 void CodeGenFunction::GenerateCXXGlobalDtorsFunc(llvm::Function *Fn,
581 // Emit an artificial location for this function.
590 if (llvm::Function *F = dyn_cast<llvm::Function>(Callee))
598 /// generateDestroyHelper - Generates a helper function which, when
601 llvm::Function *CodeGenFunction::generateDestroyHelper(
612 llvm::Function *fn = CGM.CreateGlobalInitOrDestructFunction(