LLVM 20.0.0git
Classes | Macros | Functions | Variables
DXILDataScalarization.cpp File Reference
#include "DXILDataScalarization.h"
#include "DirectX.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/ReplaceConstant.h"
#include "llvm/IR/Type.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Transforms/Utils/Local.h"

Go to the source code of this file.

Classes

class  DXILDataScalarizationLegacy
 
class  DataScalarizerVisitor
 

Macros

#define DEBUG_TYPE   "dxil-data-scalarization"
 

Functions

static bool findAndReplaceVectors (Module &M)
 
static TypereplaceVectorWithArray (Type *T, LLVMContext &Ctx)
 
ConstanttransformInitializer (Constant *Init, Type *OrigType, Type *NewType, LLVMContext &Ctx)
 
 INITIALIZE_PASS_BEGIN (DXILDataScalarizationLegacy, DEBUG_TYPE, "DXIL Data Scalarization", false, false) INITIALIZE_PASS_END(DXILDataScalarizationLegacy
 

Variables

static const int MaxVecSize = 4
 
 DEBUG_TYPE
 
DXIL Data Scalarization
 
DXIL Data false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "dxil-data-scalarization"

Definition at line 24 of file DXILDataScalarization.cpp.

Function Documentation

◆ findAndReplaceVectors()

static bool findAndReplaceVectors ( llvm::Module M)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( DXILDataScalarizationLegacy  ,
DEBUG_TYPE  ,
"DXIL Data Scalarization"  ,
false  ,
false   
)

◆ replaceVectorWithArray()

static Type * replaceVectorWithArray ( Type T,
LLVMContext Ctx 
)
static

Definition at line 160 of file DXILDataScalarization.cpp.

References replaceVectorWithArray().

Referenced by replaceVectorWithArray().

◆ transformInitializer()

Constant * transformInitializer ( Constant Init,
Type OrigType,
Type NewType,
LLVMContext Ctx 
)

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 297 of file DXILDataScalarization.cpp.

◆ false

DXIL Data false

Definition at line 298 of file DXILDataScalarization.cpp.

◆ MaxVecSize

const int MaxVecSize = 4
static

Definition at line 25 of file DXILDataScalarization.cpp.

◆ Scalarization

DXIL Data Scalarization

Definition at line 298 of file DXILDataScalarization.cpp.