Comment fixes
This commit is contained in:
4
ctx.cpp
4
ctx.cpp
@@ -3187,9 +3187,9 @@ FunctionEmitContext::BroadcastValue(llvm::Value *v, llvm::Type* vecType,
|
|||||||
name = LLVMGetName(v, buf);
|
name = LLVMGetName(v, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the follwoing sequence:
|
// Generate the following sequence:
|
||||||
// %name_init.i = insertelement <4 x i32> undef, i32 %val, i32 0
|
// %name_init.i = insertelement <4 x i32> undef, i32 %val, i32 0
|
||||||
// %name.i = shufflevector <4 x i32> %smear.0, <4 x i32> undef,
|
// %name.i = shufflevector <4 x i32> %name_init.i, <4 x i32> undef,
|
||||||
// <4 x i32> zeroinitializer
|
// <4 x i32> zeroinitializer
|
||||||
|
|
||||||
llvm::Value *undef1 = llvm::UndefValue::get(vecType);
|
llvm::Value *undef1 = llvm::UndefValue::get(vecType);
|
||||||
|
|||||||
6
opt.cpp
6
opt.cpp
@@ -2458,9 +2458,9 @@ lGSToLoadStore(llvm::CallInst *callInst) {
|
|||||||
ptr->getName(), callInst);
|
ptr->getName(), callInst);
|
||||||
llvm::Value *scalarValue = new llvm::LoadInst(ptr, callInst->getName(), callInst);
|
llvm::Value *scalarValue = new llvm::LoadInst(ptr, callInst->getName(), callInst);
|
||||||
|
|
||||||
// Generate the follwoing sequence:
|
// Generate the following sequence:
|
||||||
// %name_init.i = insertelement <4 x i32> undef, i32 %val, i32 0
|
// %name123 = insertelement <4 x i32> undef, i32 %val, i32 0
|
||||||
// %name.i = shufflevector <4 x i32> %smear.0, <4 x i32> undef,
|
// %name124 = shufflevector <4 x i32> %name123, <4 x i32> undef,
|
||||||
// <4 x i32> zeroinitializer
|
// <4 x i32> zeroinitializer
|
||||||
llvm::Value *undef1Value = llvm::UndefValue::get(callInst->getType());
|
llvm::Value *undef1Value = llvm::UndefValue::get(callInst->getType());
|
||||||
llvm::Value *undef2Value = llvm::UndefValue::get(callInst->getType());
|
llvm::Value *undef2Value = llvm::UndefValue::get(callInst->getType());
|
||||||
|
|||||||
Reference in New Issue
Block a user