LLVM API Documentation

LowerPacked.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Argument.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/ADT/StringExtras.h"
#include <algorithm>
#include <map>
#include <iostream>
#include <functional>

Include dependency graph for LowerPacked.cpp:

Go to the source code of this file.

Functions

FunctionPassllvm::createLowerPackedPass ()

Variables

RegisterOpt< LowerPacked > X ("lower-packed","lowers packed operations to operations on smaller packed datatypes")


Variable Documentation

bool Changed

whether we changed the function or not

Definition at line 95 of file LowerPacked.cpp.

std::vector<Instruction*> instrsToRemove

Instructions in the source program to get rid of after we do a pass (the old packed instructions)

Definition at line 102 of file LowerPacked.cpp.

std::map<Value*,std::vector<Value*> > packedToScalarMap

a map from old packed values to new smaller packed values

Definition at line 98 of file LowerPacked.cpp.

RegisterOpt<LowerPacked> X("lower-packed","lowers packed operations to operations on smaller packed datatypes") [static]