From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001
From: dim
The Twine class is an efficient way for APIs to accept concatenated -strings. For example, a common LLVM paradigm is to name one instruction based on +
The Twine class is an +efficient way for APIs to accept concatenated strings. For example, a common +LLVM paradigm is to name one instruction based on the name of another instruction with a suffix, for example:
The Twine class is effectively a -lightweight rope +
The Twine class is effectively a lightweight +rope which points to temporary (stack allocated) objects. Twines can be implicitly constructed as the result of the plus operator applied to strings (i.e., a C -strings, an std::string, or a StringRef). The twine delays the -actual concatenation of strings until it is actually required, at which point -it can be efficiently rendered directly into a character array. This avoids -unnecessary heap allocation involved in constructing the temporary results of -string concatenation. See -"llvm/ADT/Twine.h" -for more information.
+strings, an std::string, or a StringRef). The twine delays +the actual concatenation of strings until it is actually required, at which +point it can be efficiently rendered directly into a character array. This +avoids unnecessary heap allocation involved in constructing the temporary +results of string concatenation. See +"llvm/ADT/Twine.h" +and here for more information.As with a StringRef, Twine objects point to external memory and should almost never be stored or mentioned directly. They are intended @@ -3374,8 +3375,9 @@ provide a name for it (probably based on the name of the translation unit).
Look up the specified function in the Module SymbolTable. If it does not exist, return @@ -3863,7 +3865,7 @@ is its address (after linking) which is guaranteed to be constant.
*Ty, LinkageTypes Linkage, const std::string &N = "", Module* Parent = 0)Constructor used when you need to create new Functions to add - the the program. The constructor must specify the type of the function to + the program. The constructor must specify the type of the function to create and what type of linkage the function should have. The FunctionType argument specifies the formal arguments and return value for the function. The same @@ -4128,7 +4130,7 @@ arguments. An argument has a pointer to the parent Function.
Dinakar Dhurjati and Chris Lattner