|
LLVM 24.0.0git
|
This file contains a pass that lowers thread local variables on the XCore. More...
#include "XCore.h"#include "XCoreSubtarget.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/IntrinsicsXCore.h"#include "llvm/IR/Module.h"#include "llvm/IR/ValueHandle.h"#include "llvm/Pass.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "xcore-lower-thread-local" |
Functions | |
| INITIALIZE_PASS (XCoreLowerThreadLocal, "xcore-lower-thread-local", "Lower thread local variables", false, false) ModulePass *llvm | |
| static ArrayType * | createLoweredType (Type *OriginalType, unsigned MaxThreads) |
| static Constant * | createLoweredInitializer (ArrayType *NewType, Constant *OriginalInitializer) |
| static bool | replaceConstantExprOp (ConstantExpr *CE, Pass *P) |
| static bool | rewriteNonInstructionUses (GlobalVariable *GV, Pass *P) |
This file contains a pass that lowers thread local variables on the XCore.
Definition in file XCoreLowerThreadLocal.cpp.
| #define DEBUG_TYPE "xcore-lower-thread-local" |
Definition at line 29 of file XCoreLowerThreadLocal.cpp.
Definition at line 62 of file XCoreLowerThreadLocal.cpp.
References llvm::ConstantArray::get().
Definition at line 57 of file XCoreLowerThreadLocal.cpp.
References llvm::ArrayType::get().
| INITIALIZE_PASS | ( | XCoreLowerThreadLocal | , |
| "xcore-lower-thread-local" | , | ||
| "Lower thread local variables" | , | ||
| false | , | ||
| false | ) |
Definition at line 50 of file XCoreLowerThreadLocal.cpp.
References llvm::createXCoreLowerThreadLocalPass().
|
static |
Definition at line 71 of file XCoreLowerThreadLocal.cpp.
References llvm::dyn_cast(), E(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::SmallVectorImpl< T >::erase(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::Instruction::getNumSuccessors(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), I, llvm::Instruction::insertBefore(), P, llvm::SmallVectorImpl< T >::pop_back_val(), replaceConstantExprOp(), llvm::sort(), llvm::SplitEdge(), and llvm::unique().
Referenced by replaceConstantExprOp(), and rewriteNonInstructionUses().
|
static |
Definition at line 106 of file XCoreLowerThreadLocal.cpp.
References llvm::dyn_cast(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::isa(), P, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), replaceConstantExprOp(), and llvm::Value::users().