Home | History | Annotate | Download | only in Expression

Lines Matching defs:IRForTarget

1 //===-- IRForTarget.cpp -----------------------------------------*- C++ -*-===//
10 #include "lldb/Expression/IRForTarget.h"
44 IRForTarget::StaticDataAllocator::StaticDataAllocator(lldb_private::IRExecutionUnit &execution_unit) :
51 IRForTarget::FunctionValueCache::FunctionValueCache(Maker const &maker) :
57 IRForTarget::FunctionValueCache::~FunctionValueCache()
61 llvm::Value *IRForTarget::FunctionValueCache::GetValue(llvm::Function *function)
72 lldb::addr_t IRForTarget::StaticDataAllocator::Allocate()
95 IRForTarget::IRForTarget (lldb_private::ClangExpressionDeclMap *decl_map,
145 IRForTarget::~IRForTarget()
150 IRForTarget::FixFunctionLinkage(llvm::Function &llvm_function)
160 IRForTarget::GetFunctionAddress (llvm::Function *fun,
182 m_error_stream->Printf("Internal error [IRForTarget]: Call to unhandled compiler intrinsic '%s'\n", Intrinsic::getName(intrinsic_id).c_str());
272 m_error_stream->Printf("Error [IRForTarget]: Call to a symbol-only function '%s' that is not present in the target\n", name.GetCString());
285 IRForTarget::BuildFunctionPointer (llvm::Type *type,
296 IRForTarget::RegisterFunctionMetadata(LLVMContext &context,
322 IRForTarget::ResolveFunctionPointers(llvm::Module &llvm_module)
382 IRForTarget::DeclForGlobal (const GlobalValue *global_val, Module *module)
421 IRForTarget::DeclForGlobal (GlobalValue *global_val)
427 IRForTarget::CreateResultVariable (llvm::Function &llvm_function)
484 m_error_stream->Printf("Internal error [IRForTarget]: Result variable's name (%s) exists, but not its definition\n", result_name);
500 m_error_stream->Printf("Internal error [IRForTarget]: Result variable (%s) is defined, but is not a global variable\n", result_name);
512 m_error_stream->Printf("Internal error [IRForTarget]: Result variable (%s) does not have a corresponding Clang entity\n", result_name);
534 m_error_stream->Printf("Internal error [IRForTarget]: Result variable (%s)'s corresponding Clang entity isn't a variable\n", result_name);
572 m_error_stream->Printf("Internal error [IRForTarget]: Lvalue result (%s) is not a pointer variable\n", result_name);
592 m_error_stream->Printf("Error [IRForTarget]: Size of result type '%s' couldn't be determined\n",
664 m_error_stream->Printf("Internal error [IRForTarget]: Result variable (%s) has no writes and no initializer\n", result_name);
721 IRForTarget::RewriteObjCConstString (llvm::GlobalVariable *ns_str,
747 m_error_stream->Printf("Error [IRForTarget]: Rewriting an Objective-C constant string requires CFStringCreateWithBytes\n");
826 m_error_stream->Printf("Error [IRForTarget]: Couldn't replace an Objective-C constant string with a dynamic string\n");
837 IRForTarget::RewriteObjCConstStrings()
862 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string is not a global variable\n");
873 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string does not have an initializer\n");
886 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string is not a structure constant\n");
906 m_error_stream->Printf("Internal error [IRForTarget]: The struct for an Objective-C constant string is not as expected\n");
919 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string does not have a string initializer\n");
932 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer is not constant\n");
943 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer is not an array\n");
958 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer doesn't point to a global\n");
969 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer doesn't point to initialized data\n");
981 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer doesn't point to an array\n");
992 m_error_stream->Printf("Internal error [IRForTarget]: An Objective-C constant string's string initializer doesn't point to a C string\n");
1040 m_error_stream->Printf("Internal error [IRForTarget]: Found a CFConstantStringClassReference, but it is not a global object\n");
1066 IRForTarget::RewriteObjCSelector (Instruction* selector_load)
1182 IRForTarget::RewriteObjCSelectors (BasicBlock &basic_block)
1213 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't change a static reference to an Objective-C selector to a dynamic reference\n");
1227 IRForTarget::RewritePersistentAlloc (llvm::Instruction *persistent_alloc)
1295 IRForTarget::RewritePersistentAllocs(llvm::BasicBlock &basic_block)
1328 m_error_stream->Printf("Error [IRForTarget]: Names starting with $0, $1, ... are reserved for use as result names\n");
1347 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't rewrite the creation of a persistent variable\n");
1360 IRForTarget::MaterializeInitializer (uint8_t *data, Constant *initializer)
1428 IRForTarget::MaterializeInternalVariable (GlobalVariable *global_variable)
1471 IRForTarget::MaybeHandleVariable (Value *llvm_value_ptr)
1582 IRForTarget::HandleSymbol (Value *symbol)
1618 IRForTarget::MaybeHandleCallArguments (CallInst *Old)
1631 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't rewrite one of the arguments of a function call.\n");
1640 IRForTarget::HandleObjCClass(Value *classlist_reference)
1702 IRForTarget::RemoveCXAAtExit (BasicBlock &basic_block)
1747 IRForTarget::ResolveCalls(BasicBlock &basic_block)
1772 IRForTarget::ResolveExternals (Function &llvm_function)
1783 m_error_stream->Printf("Internal error [IRForTarget]: global variable is NULL");
1800 m_error_stream->Printf("Error [IRForTarget]: Couldn't find Objective-C indirect ivar symbol %s\n", global_name.c_str());
1810 m_error_stream->Printf("Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call\n");
1820 m_error_stream->Printf("Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call\n");
1830 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't rewrite external variable %s\n", global_name.c_str());
1841 IRForTarget::ReplaceStrings ()
1962 IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block)
2102 IRForTarget::TurnGuardLoadIntoZero(llvm::Instruction* guard_load)
2131 IRForTarget::RemoveGuards(BasicBlock &basic_block)
2177 IRForTarget::UnfoldConstant(Constant *old_constant,
2302 IRForTarget::ReplaceVariables (Function &llvm_function)
2328 m_error_stream->Printf("Internal error [IRForTarget]: Wrapper takes no arguments (should take at least a struct pointer)");
2342 m_error_stream->Printf("Internal error [IRForTarget]: Wrapper takes only 'this' argument (should take a struct pointer too)");
2356 m_error_stream->Printf("Internal error [IRForTarget]: Wrapper takes only 'self' argument (should take '_cmd' and a struct pointer too)");
2364 m_error_stream->Printf("Internal error [IRForTarget
2374 m_error_stream->Printf("Internal error [IRForTarget]: Wrapper takes only 'self' and '_cmd' arguments (should take a struct pointer too)");
2385 m_error_stream->Printf("Internal error [IRForTarget]: Wrapper takes an argument named '%s' instead of the struct pointer", argument->getName().str().c_str());
2399 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't find the first instruction in the wrapper for use in rewriting");
2410 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't produce an offset type");
2425 m_error_stream->Printf("Internal error [IRForTarget]: Structure information is incomplete");
2500 IRForTarget::BuildRelocation(llvm::Type *type, uint64_t offset)
2520 IRForTarget::CompleteDataAllocation ()
2554 IRForTarget::StripAllGVs (Module &llvm_module)
2604 IRForTarget::runOnModule (Module &llvm_module)
2620 log->Printf("Module as passed in to IRForTarget: \n\"%s\"", s.c_str());
2631 m_error_stream->Printf("Internal error [IRForTarget]: Couldn't find wrapper '%s' in the module", m_func_name.c_str());
2871 IRForTarget::assignPassManager (PMStack &pass_mgr_stack, PassManagerType pass_mgr_type)
2876 IRForTarget::getPotentialPassManagerType() const